Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.10.0
metadata
title: Smolagents2
emoji: ⚡
colorFrom: yellow
colorTo: green
sdk: gradio
sdk_version: 6.3.0
app_file: app.py
pinned: false
title: Smolagents emoji: 📚 colorFrom: indigo colorTo: indigo sdk: gradio sdk_version: 6.3.0 app_file: app.py pinned: false
Alfred AI Assistant - smolagents Framework
A multi-functional AI assistant built with the smolagents framework that can:
- 🔍 Search the web for current information
- ⏰ Tell time in any timezone
- 🧮 Perform calculations and currency conversions
- 🌤️ Check weather anywhere
- 📏 Convert between units
- Translator
🚀 Features
- 7+ Specialized Tools: Each optimized for different tasks
- Real-time Data: Web search, weather, currency rates
- Smart Tool Selection: Agent automatically chooses the right tool
- User-friendly Interface: Clean Gradio UI
- Educational: Perfect for learning smolagents framework
📋 Available Tools
- web_search_tool - Search DuckDuckGo for current information
- get_current_time_in_timezone - Time in any timezone
- calculator_tool - Math + currency conversion
- weather_tool - Current weather worldwide
- unit_conversion_tool - Convert units (length, weight, temp, etc.)
🎯 Example Queries
- "What are the latest AI news?"
- "What time is it in Tokyo?"
- "Calculate 15% of 250 + tax"
- "Convert 100 USD to EUR"
- "Weather in Paris"
- "10 km to miles"
🛠️ Technical Details
- Framework: smolagents
- LLM: Qwen/Qwen2.5-Coder-32B-Instruct (via Hugging Face)
- UI: Gradio
- Deployment: Hugging Face Spaces
📁 Files
app.py- Main application with agent and toolsprompts.yaml- System prompts and configurationrequirements.txt- Python dependencies
🚀 Deployment
- Create a new Space on Hugging Face
- Choose Gradio SDK
- Upload all files
- The Space will build automatically
📚 Course Context
This project is for the HuggingFace AI Agents Course, demonstrating the smolagents framework.
⚠️ Limitations
- Web search limited to 3 results (for speed)
- Some APIs have rate limits
- Image generation requires specific hardware
- Model may be overloaded during peak times
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference