A Streamlit application that transforms AI-related content into engaging chat conversations and animated videos.
- Research Agent: Analyzes and summarizes AI-related content
- Content Creation Agent: Transforms research into natural chat conversations
- Video Generation: Creates animated chat videos with customizable settings
- User-friendly Interface: Easy-to-use Streamlit interface with examples and settings
- Clone this repository:
git clone https://github.com/yourusername/create-with-flow.git
cd create-with-flow- Install the required dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory with the following:
GOOGLE_API_KEY=your_google_api_key
- Start the Streamlit app:
streamlit run streamlit_app.py-
Open your browser and navigate to the URL shown in the terminal (usually http://localhost:8501)
-
Enter AI-related content in the text area or choose one of the example topics
-
Click "Generate Content & Video" to process your input
-
View the generated conversation and video
-
Customize video settings and regenerate if desired
-
Download the video when satisfied
If you encounter errors related to PyTorch and event loops, try these solutions:
- Disable audio generation using the checkbox in the sidebar settings
- Restart the Streamlit app
- If the issue persists, try running with a specific Python version (3.9 is recommended)
- Make sure your environment has compatible versions of PyTorch and Streamlit
Error messages like RuntimeError: no running event loop or Tried to instantiate class '__path__._path' are typically related to PyTorch and Streamlit compatibility issues. The app includes built-in error handling to help mitigate these issues.
You can configure the following settings:
- Contact Name: The name displayed in the chat interface
- Input Placeholder: Text shown in the input field of the chat
- Video Speed: Playback speed of the generated video
The app includes example topics to demonstrate its capabilities:
- GPT-4 Overview
- AI Research Ethics
- Diffusion Models
agents/: Contains the multi-agent system implementationvideo_generation.py: Handles the creation of chat videosaudio_generation.py: Manages text-to-speech for video audiostreamlit_app.py: Main application fileapp.py: Original script for command-line usage
- Python 3.8+
- Streamlit
- Google Generative AI API
- MoviePy
- PIL
- Other dependencies listed in requirements.txt
MIT
- This project uses the Google Generative AI API for research and content creation
- Video generation is built with MoviePy and PIL