SumanDhanu's picture
Update README.md
46e8806 verified
---
title: MultiLingualNewsHub-AI
emoji: 📰
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 5.21.0
app_file: app.py
pinned: false
---
# Multilingual AI News Generator
This application uses LLM agents to fetch and edit news articles on any topic in multiple languages. It combines DuckDuckGo search with AI text generation to create ready-to-publish news articles in the language of your choice.
## How it works
1. Enter a topic in the textbox
2. Select your preferred language from the dropdown (19 languages supported)
3. Click "Generate News Article"
4. The app will:
- Search for recent news on your topic in the selected language
- Compile the search results
- Use an AI editor to rewrite the articles into a cohesive, publication-ready format in the selected language
## Technical Details
This application uses:
- DuckDuckGo search API for fetching news in multiple languages
- OpenAI's GPT-4o-mini model for multilingual text generation and editing
- Agents framework for orchestrating multi-step AI workflows
- Gradio for the user interface
- Support for 19 languages including English, Hindi, Kannada, Spanish, and more
## Setup
If you're running this locally, you'll need to set up the following environment variables:
- `OPENAI_API_KEY`: Your OpenAI API key
## Credits
Built with ❤️ using Gradio and Hugging Face