Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from transformers import pipeline,
|
3 |
import feedparser
|
4 |
from datetime import datetime, timedelta
|
5 |
import json
|
@@ -35,6 +35,8 @@ LANGUAGE_CODES = {
|
|
35 |
"Arabic": {"code": "ar", "model": "Helsinki-NLP/opus-mt-en-ar"}
|
36 |
}
|
37 |
|
|
|
|
|
38 |
# [Previous NEWS_SOURCES definition remains the same...]
|
39 |
|
40 |
# Initialize global variables
|
|
|
1 |
import gradio as gr
|
2 |
+
from transformers import pipeline, AutoModelForSeq2SeqLearning, AutoTokenizer
|
3 |
import feedparser
|
4 |
from datetime import datetime, timedelta
|
5 |
import json
|
|
|
35 |
"Arabic": {"code": "ar", "model": "Helsinki-NLP/opus-mt-en-ar"}
|
36 |
}
|
37 |
|
38 |
+
# [Rest of the code remains the same...]
|
39 |
+
|
40 |
# [Previous NEWS_SOURCES definition remains the same...]
|
41 |
|
42 |
# Initialize global variables
|