Spaces:
Sleeping
Sleeping
pradeepiisc
commited on
Commit
•
1304175
1
Parent(s):
b6e295a
correcion in application file
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5
|
5 |
|
6 |
def translate(text):
|
7 |
text = text.replace('"', '"')
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-small", truncation=True, framework="tf")
|
5 |
|
6 |
def translate(text):
|
7 |
text = text.replace('"', '"')
|