Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
3 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
# Step 1: Define Summarization Pipeline
|
6 |
-
summarizer_ntg = pipeline("
|
7 |
|
8 |
# Step 2: Define Classification Pipeline
|
9 |
tokenizer_bb = AutoTokenizer.from_pretrained("Lauraayu/News_Classi_Model")
|
|
|
3 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
4 |
|
5 |
# Step 1: Define Summarization Pipeline
|
6 |
+
summarizer_ntg = pipeline("text2text-generation", model="mrm8488/t5-base-finetuned-summarize-news")
|
7 |
|
8 |
# Step 2: Define Classification Pipeline
|
9 |
tokenizer_bb = AutoTokenizer.from_pretrained("Lauraayu/News_Classi_Model")
|