OnyxMunk/autogpt-space
0
AutoGPT Space
An autonomous AI agent powered by AutoGPT and Google Gemini, deployed as a Hugging Face Space using Docker.
Features
- ๐ค Autonomous Task Execution - Break down complex tasks into steps and execute them autonomously
- ๐ Iterative Problem-Solving - Multi-step reasoning and execution powered by Google Gemini
- ๐๏ธ Configurable Parameters - Adjust iterations, temperature, and more
- ๐ Beautiful Web Interface - Modern Gradio UI with progress tracking
- ๐ Secure API Key Management - Environment variables for sensitive credentials
- ๐ Powered by Google Gemini - Leveraging Google's advanced language models
Usage
- Configure API Keys (Required for full functionality):
- Get your Google Gemini API key from Google AI Studio
- Go to Space Settings โ Repository secrets
- Add
GOOGLE_API_KEYwith your Google Gemini API key - Optionally set
GEMINI_MODEL(default:gemini-pro) - Available models:
gemini-pro,gemini-pro-vision
- Run Tasks:
- Enter a task description in the text box
- Adjust max iterations and temperature if needed
- Click "Run AutoGPT" to start execution
- View real-time progress and results
Configuration
Environment Variables
Add these in Space Settings โ Repository secrets:
\* Required for full functionality. The Space will run in demo mode without API keys.
Get your API key: Visit Google AI Studio to create a free API key.
Available Models
gemini-pro- Standard text generation model (default)gemini-pro-vision- Multimodal model with vision capabilities
Parameters
- Max Iterations: Controls how many steps AutoGPT will take (1-20)
- Temperature: Controls the randomness of LLM responses (0.0-2.0)
- Lower values (0.0-0.5): More deterministic, focused responses
- Higher values (1.0-2.0): More creative, varied responses
How It Works
- Planning Phase: AutoGPT uses Gemini to break down your task into actionable steps
- Execution Phase: Each step is executed sequentially with context awareness using Gemini
- Summary Phase: Results are compiled and presented in a readable format
Example Tasks
- "Research and summarize the latest developments in AI"
- "Create a Python script to analyze stock market data"
- "Write a comprehensive blog post about sustainable energy"
- "Design a marketing strategy for a new product launch"
- "Analyze customer feedback and provide actionable insights"
Technical Details
- Framework: Gradio 4.0+
- API: Google Gemini API (
google-generativeai) - Language: Python 3.11
- Container: Docker-based deployment
- Model: Google Gemini Pro (configurable)
Getting Started
- Clone this repository or use it as a template
- Set up your
GOOGLE_API_KEYin Space Settings - Deploy to Hugging Face Spaces
- Start executing autonomous tasks!
License
MIT License
