Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-
|
5 |
|
6 |
def translate(text):
|
7 |
text = text.replace("\n", "")
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-small", framework="tf")
|
5 |
|
6 |
def translate(text):
|
7 |
text = text.replace("\n", "")
|