Skip to content

canstralian/AIAppBuilder

Repository files navigation

πŸ€– AI Application Generator

AI Application Generator

🌟 Overview

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.

✨ Features

  • 🧠 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

πŸ“± Application Types

🌊 Streamlit Apps

  • πŸ“„ Blank Template
  • πŸ“Š Data Visualization
  • πŸ“ File Upload & Processing
  • πŸ“ Interactive Form
  • πŸ”€ NLP Analysis App
  • πŸ–ΌοΈ Image Classification

πŸŽ›οΈ Gradio Apps

  • πŸ“„ Blank Template
  • πŸ–ΌοΈ Image Classification
  • ✍️ Text Generation
  • πŸ”Š Audio Analysis
  • πŸ’¬ Chat Interface

πŸš€ Getting Started

  1. Clone this repository:
git clone https://github.com/yourusername/ai-app-generator.git
cd ai-app-generator
  1. Install dependencies:
pip install -r requirements.txt
  1. (Optional) Set up your Google Gemini API key as an environment variable:
export GOOGLE_API_KEY=your_api_key_here
  1. Run the application:
streamlit run main.py

πŸ“ Usage

  1. πŸ” Select the application type (Streamlit or Gradio)
  2. πŸ“‹ Choose a starting template
  3. 🧠 Select the AI model to use
  4. πŸ“ Enter a detailed description of your desired application
  5. πŸ”¨ Click "Generate App" to create your code
  6. πŸ’Ύ Download or copy the generated code to use in your projects

πŸ’‘ Example Prompts

  • 🐾 "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."

βš™οΈ Advanced Options

  • 🌑️ Adjust temperature for model creativity
  • βœ… Enable/disable code validation
  • πŸ” Enable/disable auto-formatting of code

πŸ“‹ Requirements

  • 🐍 Python 3.8+
  • 🌊 Streamlit
  • 🧠 Google Generative AI (for Gemini API)
  • πŸ”„ Transformers (for CodeT5 and T0 models)
  • πŸ”₯ PyTorch
  • πŸ”€ NLTK
  • 🐼 Pandas
  • πŸ“Š Matplotlib
  • 🌊 Seaborn

πŸ‘₯ Contributing

Contributions are welcome! Please check out our Contributing Guidelines for details on how to get started.

πŸ“œ Code of Conduct

Please read our Code of Conduct to understand our community expectations.

βš–οΈ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments