Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,11 +2,11 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def get_summary(text):
|
5 |
-
summarizer = pipeline("summarization", model="
|
6 |
summary = summarizer(text, min_length=39, max_length=25000)
|
7 |
return summary[0]['summary_text']
|
8 |
|
9 |
#gr.Interface(fn=get_summary, inputs="text", outputs="text").launch()
|
10 |
-
gr.Interface.load("
|
11 |
|
12 |
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
def get_summary(text):
|
5 |
+
summarizer = pipeline("summarization", model="paulowoicho/t5-podcast-summarisation", tokenizer="paulowoicho/t5-podcast-summarisation")
|
6 |
summary = summarizer(text, min_length=39, max_length=25000)
|
7 |
return summary[0]['summary_text']
|
8 |
|
9 |
#gr.Interface(fn=get_summary, inputs="text", outputs="text").launch()
|
10 |
+
gr.Interface.load("paulowoicho/t5-podcast-summarisation").launch()
|
11 |
|
12 |
|