seemasaharann commited on
Commit
3142597
·
verified ·
1 Parent(s): c08cfa0

updated model and tokenizers to google-t5/t5-small

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
2
  import gradio as gr
3
 
4
  # Define the summarizer using the transformers pipeline
5
- summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-small", truncation=True, framework="tf")
6
 
7
  # Define the function to process the text and return the summary
8
  def translate(text):
 
2
  import gradio as gr
3
 
4
  # Define the summarizer using the transformers pipeline
5
+ summarizer = pipeline("summarization", model="google-t5/t5-small", tokenizer="google-t5/t5-small", truncation=True, framework="tf")
6
 
7
  # Define the function to process the text and return the summary
8
  def translate(text):