Spaces:
Sleeping
Sleeping
Commit
·
3a59162
1
Parent(s):
a341bb9
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 =
|
5 |
|
6 |
def translate(text):
|
7 |
results = summarizer(text, min_length=180, truncation = True)
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
summarizer = pipeline("summarization", model="t5-base", tokenizer="t5-base", truncation=True, framework="tf")
|
5 |
|
6 |
def translate(text):
|
7 |
results = summarizer(text, min_length=180, truncation = True)
|