Welcome to FableForge AI 2.0! This guide will help you upgrade from the previous version with all the new features and improvements.
- 🎨 Modern UI: Complete redesign with gradient styling and responsive layout
- 🤖 Latest AI Models: Gemini 2.0 Flash and 2.5 Pro integration
- 📊 Analytics Dashboard: Real-time metrics and usage insights
- 🎯 AI Assistant Hub: Writing assistance, translation, and more
- 🌊 Streaming Responses: Real-time text generation
- 🔊 Enhanced Audio: Better text-to-speech with multiple voices
- 📱 Mobile Responsive: Optimized for all device sizes
- Navigation Pills: Modern tab-based navigation
- Voice Input: Microphone integration (coming soon)
- Download Options: Export stories and chat history
- Model Selection: Choose from multiple AI models
- Creative Writing: Poems, lyrics, character descriptions
- Advanced Settings: Temperature and token controls
# Create a backup of your current installation
cp -r FableForgeAI-StoryEngine FableForgeAI-StoryEngine-backup# Update to the latest packages
pip install --upgrade -r requirements.txtNo changes needed! Your existing .env file will work perfectly:
GOOGLE_API_KEY=your_existing_key
HUGGING_FACE_AUTH_TOKEN=your_existing_tokenThe following packages were added in v2.0:
plotly>=5.22.0- For interactive chartsnumpy>=1.24.0- For data processingpandas>=2.0.0- For analyticsstreamlit-audio-recorder>=0.0.8- For voice inputstreamlit-camera-input-live>=0.2.0- For camera features
streamlit>=1.45.0(was unspecified)google-generativeai>=0.8.5(was gradio_client)python-dotenv>=1.0.0(was unspecified)Pillow>=10.0.0(was unspecified)
| Feature | v1.0 | v2.0 |
|---|---|---|
| UI Design | Basic | Modern gradient styling |
| AI Models | Gemini Pro | Gemini 2.0 Flash + 2.5 Pro |
| Navigation | Simple menu | Enhanced option menu |
| Story Generation | Basic | Multiple modes + genres |
| Audio | Basic TTS | Enhanced with options |
| Analytics | ❌ | ✅ Full dashboard |
| AI Assistant | ❌ | ✅ Multiple assistants |
| Streaming | ❌ | ✅ Real-time responses |
| Downloads | ❌ | ✅ Export options |
| Mobile | Limited | Fully responsive |
- No breaking changes in core functionality
- API keys remain the same - no need to regenerate
- All existing features preserved and enhanced
- Backward compatibility maintained
If you've customized the code, here are the main changes:
# Old way (still works)
model = genai.GenerativeModel("gemini-pro")
# New way (recommended)
model = load_gemini_pro_model() # Auto-selects best available model# Streaming responses (new feature)
response = gemini_stream_response(prompt)
for chunk in response:
print(chunk.text)Access via the sidebar navigation:
- View usage statistics
- Interactive charts with Plotly
- Performance monitoring
- User engagement metrics
Multiple assistant types:
- Writing Assistant: Grammar, tone, translation
- Research Helper: Information gathering
- Idea Generator: Creative prompts
- Learning Tutor: Educational content
New story modes:
- Image + Text: Upload images for inspiration
- Text-Only: Pure text-based stories
- Creative Writing: Poems, lyrics, descriptions
Enable in ChatBot settings:
- Real-time text generation
- Live typing effect
- Better user experience
New audio features:
- Multiple voice options
- Better quality TTS
- Error handling
- Format options (WAV, OGG)
-
Package Conflicts
pip uninstall streamlit pip install streamlit>=1.45.0 -
Missing Dependencies
pip install plotly pandas numpy
-
Audio Issues
# Check Hugging Face token echo $HUGGING_FACE_AUTH_TOKEN
-
UI Not Loading
# Clear Streamlit cache streamlit cache clear
-
Memory Usage
- Use faster models for simple tasks
- Enable caching in settings
- Close unused browser tabs
-
Response Speed
- Select appropriate model
- Adjust token limits
- Use streaming for long responses
If you encounter any issues during the upgrade:
- Check the logs: Look for error messages in the terminal
- Verify API keys: Ensure they're valid and have correct permissions
- Update packages: Make sure all dependencies are latest versions
- Create an issue: GitHub Issues
You're now ready to enjoy all the new features and improvements. Here's what to try first:
- 🎨 Explore the new UI - Check out the modern design
- 📊 Visit Analytics - See your usage patterns
- 🎯 Try AI Assistant - Get writing help
- 🌊 Enable Streaming - Experience real-time responses
- 🔊 Generate Audio - Listen to your stories
Happy storytelling! 🚀