File size: 1,356 Bytes
41888bd
 
 
 
 
 
46e8806
41888bd
 
 
 
f01d87d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41888bd
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
---
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