An AI for Writing Stories
Begin by crafting the structure of your stories:
- Intro: Set the stage for your narrative.
- Body: Develop the plot through several sections.
- Conclusion: Bring your story to a satisfying end.
- Pull out keywords from your story outlines.
- Search public domain websites for books matching your keywords.
Use tags for data cleaning:
<d></d>: Delete section.<a></a>: Author's name.<t></t>: Title of the work.<g></g>: Genre.<s></s>: Source of the book.<p></p>: Publication year.<c></c>: Content of the book.
- Place the plain text book files in the
../booksdirectory. - Ensure the files are in
.txtformat.
- Execute
_booktodataset_new_kfold.pyscript located in thescriptsfolder to create the k-fold training datasets.
- Once the dataset is prepared, start training the model.
- Run
_run_build_model.pyfrom thescriptsfolder. This script will reinitiate training if any interruptions occur.
- Move the trained model to the
servicesfolder.
- Start the backend service by running
python3 main.py.
- Navigate to the
StoryBuddyWebfolder. - Launch the application with
python3 app.py.
To add your story to story3.com:
- Prepare your story and twists in
story.json, adhering to the provided structure. - Rename the file to match the title of your story.
- Execute the
python3 staticuploadstory.pyscript from the services directory. - Follow the prompts to specify the path to your JSON file.
- Observe the console for errors during upload.
- Once uploaded, visit story3.com to officially publish your story.
- Share your story on various social media channels.