Spaces:
Runtime error
Runtime error
updated model and tokenizers to google-t5/t5-small
Browse files
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-
|
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):
|