Spaces:
Sleeping
Sleeping
| title: AI Script Studio | |
| emoji: π¬ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: streamlit | |
| sdk_version: 1.37.1 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| short_description: Generate Instagram-ready scripts with AI-powered RAG system | |
| # π¬ AI Script Studio | |
| Generate Instagram-ready scripts with AI using advanced RAG (Retrieval-Augmented Generation) system. | |
| ## Features | |
| - π€ **AI-Powered Generation**: Uses DeepSeek API for high-quality script generation | |
| - π§ **RAG System**: Retrieval-Augmented Generation with semantic search | |
| - π **Multi-Armed Bandit Learning**: Self-improving generation policies | |
| - π― **Auto-Scoring**: LLM-based quality assessment | |
| - π **Rating System**: Human feedback integration with learning | |
| - π¨ **Multiple Personas**: Support for different creator styles | |
| - π **Content Types**: Various Instagram content formats | |
| ## How It Works | |
| 1. **Reference Retrieval**: Uses semantic search to find relevant examples | |
| 2. **Policy Learning**: Multi-armed bandit optimizes generation parameters | |
| 3. **AI Generation**: Creates scripts using retrieved references | |
| 4. **Auto-Scoring**: LLM judges quality across 5 dimensions | |
| 5. **Learning Loop**: System improves based on feedback | |
| ## Usage | |
| 1. Select your creator persona | |
| 2. Choose content type and tone | |
| 3. Add reference examples (optional) | |
| 4. Generate scripts with AI | |
| 5. Rate and provide feedback | |
| 6. System learns and improves | |
| ## Technical Stack | |
| - **Frontend**: Streamlit | |
| - **AI**: DeepSeek API | |
| - **RAG**: Sentence Transformers + FAISS | |
| - **Database**: SQLite with SQLModel | |
| - **Learning**: Multi-armed bandit algorithms | |
| - **Scoring**: LLM-based evaluation | |
| ## Setup | |
| 1. Add your DeepSeek API key to the secrets | |
| 2. The app will automatically initialize the database | |
| 3. Start generating scripts! | |
| ## API Key | |
| Get your free API key at: https://platform.deepseek.com/api_keys |