Lauraayu commited on
Commit
5dec2c7
·
verified ·
1 Parent(s): f0e521d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("summarization", model="mrm8488/t5-base-finetuned-summarize-news")
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")