CoolFace
Apppublic

jairo/SmolNews

sourceHugging Faceupdated 2y agoView on Hugging Face
6likes
App README

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. 1.get_news_from_place: Fetches and formats top 5 news articles for a specified location
  2. 2.get_current_time_in_timezone: Retrieves current local time for any timezone
  3. 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