Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -8,57 +8,41 @@ sdk_version: 5.0.0
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
-
short_description:
|
12 |
---
|
13 |
|
14 |
# π° NewsIA - AI News Generator
|
15 |
|
16 |
-
NewsIA is an application that uses artificial intelligence to generate professional news articles from multiple sources
|
17 |
|
18 |
## Features
|
19 |
|
20 |
-
- **Multiple input sources**: Documents (PDF, DOCX, XLSX, CSV), audio, video, URLs, and social media
|
21 |
-
- **Automatic transcription**:
|
22 |
-
- **
|
23 |
-
- **
|
24 |
-
- **Customization**:
|
25 |
|
26 |
-
##
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
-
|
|
|
|
|
|
|
|
|
32 |
|
33 |
-
##
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
- **URLs**: Add links to relevant web pages
|
41 |
-
- **Social Media**: Add links to social media posts
|
42 |
-
4. Click on **Generate News**
|
43 |
|
44 |
## Installation
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
1. Clone this repository
|
49 |
-
2. Install the required dependencies with `pip install -r requirements.txt`
|
50 |
-
3. Run the application with `python app.py`
|
51 |
-
|
52 |
-
## Environment Variables
|
53 |
-
|
54 |
-
The application uses the following environment variables:
|
55 |
-
|
56 |
-
- `HUGGINGFACE_TOKEN`: Your Hugging Face API token (required to access the models)
|
57 |
-
|
58 |
-
## Technical Details
|
59 |
-
|
60 |
-
NewsIA uses a two-stage approach:
|
61 |
-
1. **Data Processing**: Extracts and processes information from various sources
|
62 |
-
2. **News Generation**: Uses a language model to create a coherent news article based on the processed data
|
63 |
-
|
64 |
-
The application is designed to run efficiently on Hugging Face Spaces with ZeroGPU resources, using optimized memory management techniques to improve performance.
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
short_description: AI-Powered News Generator
|
12 |
---
|
13 |
|
14 |
# π° NewsIA - AI News Generator
|
15 |
|
16 |
+
NewsIA is an application that uses artificial intelligence to generate professional news articles from multiple sources using optimized models.
|
17 |
|
18 |
## Features
|
19 |
|
20 |
+
- **Multiple input sources**: Documents (PDF, DOCX, XLSX, CSV), audio, video, URLs, and social media
|
21 |
+
- **Automatic transcription**: Transcribes audio/video files using Whisper
|
22 |
+
- **Efficient generation**: Uses Unsloth-optimized TinyLlama for fast inference
|
23 |
+
- **Memory management**: Automatic model reset for ZeroGPU compatibility
|
24 |
+
- **Customization**: Adjustable length and tone
|
25 |
|
26 |
+
## How to Use
|
27 |
|
28 |
+
1. Provide **instructions** and **key facts**
|
29 |
+
2. Adjust desired **length** (100-500 words) and **tone**
|
30 |
+
3. Add optional sources:
|
31 |
+
- Upload documents
|
32 |
+
- Add audio/video files for transcription
|
33 |
+
- Include relevant URLs
|
34 |
+
- Add social media links
|
35 |
+
4. Click **Generate News**
|
36 |
|
37 |
+
## Technical Improvements
|
38 |
|
39 |
+
- π 4x faster inference with Unsloth
|
40 |
+
- π Secure model loading (weights_only=True)
|
41 |
+
- π» Full English interface
|
42 |
+
- π§ Optimized memory management for ZeroGPU
|
43 |
+
- π Updated dependencies for Gradio 5.x
|
|
|
|
|
|
|
44 |
|
45 |
## Installation
|
46 |
|
47 |
+
```bash
|
48 |
+
pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|