Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
# Load pre-trained BART model for summarization
|
| 5 |
-
summarizer = pipeline("summarization", model="
|
| 6 |
|
| 7 |
# Summarization function
|
| 8 |
def summarize_text(text, max_length=150):
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
# Load pre-trained BART model for summarization
|
| 5 |
+
summarizer = pipeline("summarization", model="ranwakhaled/fine-tuned-T5-for-Arabic-summarization")
|
| 6 |
|
| 7 |
# Summarization function
|
| 8 |
def summarize_text(text, max_length=150):
|