π» Ghost Story Generator β An AI-Powered Spooky Story Creator
Ever wondered what happens when AI enters the world of ghosts, mysteries, and spooky stories? π
For the DEV Week 4 Challenge, I built Ghost Story Generator, a simple web app that creates spooky stories using AI!
π‘ What is this project?
Ghost Story Generator is a web application where users can enter a story idea, choose a mood, select a story length, and optionally provide a setting. The AI then attempts to generate a unique story based on those inputs.
Whether it's an abandoned college, a mysterious forest, or strange footsteps at midnight, your imagination provides the starting point! π
β¨ Features
- π» Generate stories from your own ideas.
- π Choose a mood: Spooky, Mysterious, Funny, or Folklore-inspired.
- π Select the approximate story length.
- ποΈ Add a custom setting for your story.
- π₯ Download the generated story as a text file.
π οΈ Tech Stack
- Python β Application logic
- Streamlit β Web application interface
- Hugging Face Transformers β AI text generation
- FLAN-T5 Small β Language model used for story generation
π How It Works
- Enter a story idea.
- Select your preferred mood and story length.
- Add a setting if you want.
- Click the generate button.
- Read your AI-generated story and download it.
The model may need to download the first time the app runs, so an internet connection is recommended during initial setup.
π» GitHub Repository
π Project Source Code:
https://github.com/pavaniverma18-blip/ghost-story-generator
π What I Learned
Building this project helped me explore Streamlit, experiment with AI text-generation models, and understand how to connect a machine learning model to a simple web interface.
I also learned that getting an AI application to run reliably requires testing, debugging, and handling errorsβnot just writing code!
π What's Next?
I'd love to improve the project with more creative story styles, better story quality, and additional customization options.
If you could generate a horror story about anything, what would your idea be? Share it in the comments! π
#devchallengesvg #hf26challengesvg

Top comments (0)