File size: 1,391 Bytes
0128def
e3d7fcc
0128def
 
 
 
 
 
 
3ce50c4
e0cc0af
e8d4494
 
 
e3d7fcc
0128def
 
4dd35b9
 
 
3a2c59e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0128def
3a2c59e
 
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
---
title: First Agent Template
emoji: 
colorFrom: pink
colorTo: yellow
sdk: gradio
sdk_version: 5.15.0
app_file: app.py
pinned: false
tags:
- smolagents
- agent
- smolagent
- tool
- agent-course
---

# SmolNews: News and Time Agent

* Top 5 headlines, smol news but with a twist.

A Gradio-based web application that combines news fetching and timezone capabilities using the smolagents framework.

## Features

- **News Search**: Fetch top 5 news articles for any location using Google News RSS feed
- **Timezone Information**: Get current local time for any timezone
- **Interactive Interface**: Built with Gradio for easy interaction

## Technical Stack

- **Framework**: smolagents
- **Model**: Qwen2.5-Coder-32B-Instruct
- **UI**: Gradio
- **Key Dependencies**: 
  - smolagents (agent framework)

## Tools

The agent comes with several built-in tools:

1. `get_news_from_place`: Fetches and formats top 5 news articles for a specified location
2. `get_current_time_in_timezone`: Retrieves current local time for any timezone
3. `FinalAnswerTool`: Provides final responses to user queries

## Configuration

The agent is configured with:
- Maximum 6 steps per interaction
- Temperature: 0.5
- Max tokens: 2096
- Custom prompt templates (loaded from prompts.yaml)

## Getting Started

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference