File size: 1,914 Bytes
4e38a2e 480e442 2619a52 480e442 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
---
title: Web Agent
emoji: π
colorFrom: blue
colorTo: yellow
sdk: gradio
sdk_version: 5.23.1
app_file: app.py
pinned: false
tags:
- smolagents
- agent
- smolagent
---
# Web Search Agent
A powerful AI-powered web agent that can search the web, summarize webpages, and provide time information across different timezones.
## π Demo
Try out the live demo on Hugging Face Spaces:
## [π View Demo Here π](https://huggingface.co/spaces/naoufalcb/web_agent)
## β¨ Features
- π Web Search: Search the internet using DuckDuckGo
- π Webpage Summarization: Get concise summaries of web content
- π Timezone Information: Get current time in any timezone
- π€ AI-Powered Responses: Using Azure's LLama model for intelligent interactions
- π₯οΈ User-Friendly Interface: Built with Gradio for easy interaction
## π οΈ Installation
1. Clone the repository
2. Install the required dependencies:
```bash
pip install -r requirements.txt
```
3. Create a `.env` file based on `.env.example` and add your Azure API credentials:
```env
AZURE_ENDPOINT=your_endpoint
AZURE_API_KEY=your_api_key
```
## π¦ Usage
Run the application:
```bash
python app.py
```
The web interface will be available at `http://localhost:7860`
## π§ Tools Available
The agent comes with several built-in tools:
1. **Web Search**: Search the internet using DuckDuckGo
2. **Webpage Summarizer**: Get summaries of web content
3. **Timezone Tool**: Get current time in any timezone
4. **Final Answer Tool**: Provides conclusive responses to queries
## π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## π License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
## π References
- Built with [Gradio](https://gradio.app/)
- Uses [SmoLAgents](https://github.com/huggingface/smol-ai-agents) framework
- Azure AI for inference
|