The AI Application Generator is a tool that automates the creation of Streamlit and Gradio applications using multiple AI models. This tool helps developers, data scientists, and software engineers to quickly prototype and generate code for various applications based on simple text descriptions.
- π§ Multiple AI Models: Powered by Gemini Pro 2.0, CodeT5, and T0_3B
- π Template Selection: Choose from various templates for both Streamlit and Gradio
- π Light/Dark Mode: Toggle between light and dark theme for comfortable coding
- β Code Validation: Automatically validate generated code syntax
- π Code Formatting: Format generated code for readability
- πΎ Export Options: Download generated code or copy to clipboard
- π Regeneration: Easily regenerate code using different models
- π Blank Template
- π Data Visualization
- π File Upload & Processing
- π Interactive Form
- π€ NLP Analysis App
- πΌοΈ Image Classification
- π Blank Template
- πΌοΈ Image Classification
- βοΈ Text Generation
- π Audio Analysis
- π¬ Chat Interface
- Clone this repository:
git clone https://github.com/yourusername/ai-app-generator.git
cd ai-app-generator
- Install dependencies:
pip install -r requirements.txt
- (Optional) Set up your Google Gemini API key as an environment variable:
export GOOGLE_API_KEY=your_api_key_here
- Run the application:
streamlit run main.py
- π Select the application type (Streamlit or Gradio)
- π Choose a starting template
- π§ Select the AI model to use
- π Enter a detailed description of your desired application
- π¨ Click "Generate App" to create your code
- πΎ Download or copy the generated code to use in your projects
- πΎ "A simple image classifier that can identify dogs, cats, and birds using a pre-trained model."
- π "A sentiment analysis app that analyzes the sentiment of user-entered text and provides a positive, negative, or neutral rating."
- π "A data dashboard that visualizes COVID-19 statistics with interactive maps and charts."
- πΌοΈ "A file converter app that allows users to upload images and convert them to different formats."
- π‘οΈ Adjust temperature for model creativity
- β Enable/disable code validation
- π Enable/disable auto-formatting of code
- π Python 3.8+
- π Streamlit
- π§ Google Generative AI (for Gemini API)
- π Transformers (for CodeT5 and T0 models)
- π₯ PyTorch
- π€ NLTK
- πΌ Pandas
- π Matplotlib
- π Seaborn
Contributions are welcome! Please check out our Contributing Guidelines for details on how to get started.
Please read our Code of Conduct to understand our community expectations.
This project is licensed under the MIT License - see the LICENSE file for details.
- π« This project was inspired by Hugging Face Spaces like Deepseek Coder, CodeLlama Playground, and AI Python Code Reviewer
- β€οΈ Thanks to all contributors who have helped shape this project