iamAI123 commited on
Commit
a0fc304
·
1 Parent(s): 2099820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="gmurro/bart-large-finetuned-filtered-spotify-podcast-summ", tokenizer="gmurro/bart-large-finetuned-filtered-spotify-podcast-summ")
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("huggingface/gpt2").launch()
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