Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import langid # مكتبة للكشف عن اللغة
|
|
| 4 |
|
| 5 |
# تحميل نماذج التلخيص
|
| 6 |
summarizer_en = pipeline("summarization", model="facebook/bart-large-cnn")
|
| 7 |
-
summarizer_ar =
|
| 8 |
|
| 9 |
def summarize_text(text, language):
|
| 10 |
if not text.strip():
|
|
|
|
| 4 |
|
| 5 |
# تحميل نماذج التلخيص
|
| 6 |
summarizer_en = pipeline("summarization", model="facebook/bart-large-cnn")
|
| 7 |
+
summarizer_ar = pipeline("summarization", model="malmarjeh/t5-arabic-text-summarization")
|
| 8 |
|
| 9 |
def summarize_text(text, language):
|
| 10 |
if not text.strip():
|