Automated UI generator that creates Streamlit interfaces from natural language prompts using Google's Gemini API 🤖
AutoUI is a powerful Streamlit application that automatically generates user interfaces based on natural language prompts. It uses the Google Gemini API to interpret user queries and dynamically create interactive UI components that respond to user needs.
- Dynamic UI Generation: Convert natural language descriptions into functional Streamlit UI components
- Web Search Integration: Access real-time information from the web to enhance responses
- AI-Powered Responses: Process and display information using Google's Gemini model
- Real-time Interaction: Get immediate feedback and UI updates based on your queries
- Python 3.8+
- Google Gemini API key
- Required Python packages (see
requirements.txt)
- Clone the repository:
git clone https://github.com/yourusername/AutoUI.git
cd AutoUI- Install the required packages:
pip install -r requirements.txt- Create a
.envfile in the project root directory with your Google Gemini API key:
GEMINI_API_KEY=your_api_key_here
- Start the Streamlit application:
streamlit run main.py-
Access the application through your web browser at
localhost:8501 -
Enter a natural language query in the input field describing the UI you want to generate
- Example: "Create a dashboard showing stock prices with a date selector"
- Example: "Make a form for user registration with validation"
-
The application will generate the appropriate UI components based on your query
Here are some example prompts you can try:
Create a data visualization for stock prices
Build a form for capturing user feedback with ratings and comments
Generate a dashboard showing weather information for different cities
Create a multi-step wizard for a registration process
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.