2024-12-14.16-24-38.mp4
Craft unique stories through natural dialogue with an advanced AI storyteller. Our system adapts to your input and helps develop engaging narratives that bring your ideas to life.
Choose from diverse themes like adventure, mystery, romance, and more. Fine-tune your narrative style from fantasy to sci-fi, ensuring each story matches your creative vision.
Build compelling characters using expert-designed templates or create your own from scratch. Develop rich personalities that drive your story forward.
Take full control of your narrative with adjustable parameters for creativity, coherence, and story length. Shape the storytelling experience exactly how you want it.
Never lose your creative work with built-in story saving and management features. Easily revisit and continue your narratives at any time.
Installation Guide
- Python 3.8 or higher
- A Hugging Face API token
- Clone the repository:
git clone https://github.com/ChanMeng666/interactive-story-generator.git
cd interactive-story-generator
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file and add your Hugging Face API token:
HF_TOKEN=your_token_here
- Run the application:
python app.py
The application will be available at http://localhost:7860
How to Create Your Story
-
Choose Your Theme
- Select from multiple story themes and styles
- Customize the narrative tone to match your vision
-
Set Up Characters
- Pick from character templates or create custom ones
- Define personality traits and backgrounds
-
Begin Your Story
- Describe your initial scene
- Click "Start Story" to begin the AI collaboration
-
Develop the Narrative
- Interact with the AI to progress the story
- Guide the plot development through natural dialogue
-
Fine-tune Generation
- Adjust creativity settings (Temperature: 0.1-2.0)
- Control story length (Max Tokens: 64-1024)
- Modify narrative diversity (Top-p: 0.1-1.0)
-
Save Your Work
- Export your story at any time
- Continue previous stories seamlessly
Generation Parameters
Controls creativity level (0.1-2.0):
- Higher values (>1.0) produce more creative, varied output
- Lower values (<1.0) generate more focused, consistent content
Adjusts response length (64-1024):
- Higher values allow for longer story segments
- Lower values create more concise responses
Fine-tunes output diversity (0.1-1.0):
- Higher values increase response variety
- Lower values make outputs more deterministic
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
- Built with Gradio
- Powered by Hugging Face
- Uses Meta's Llama model
Contributions are welcome! Please feel free to submit a Pull Request.
Created and maintained by Chan Meng.