Ahsen Khaliq commited on
Commit
329d193
1 Parent(s): 24a5302

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import gradio as gr
2
- title = "Pegasus Paraphrase"
3
- description = "Gradio Demo for PEGASUS fine-tuned for paraphrasing. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
4
- article = "<p style='text-align: center'><a href='https://huggingface.co/tuner007/pegasus_paraphrase' target='_blank'>Huggingface Model</a></p>"
 
 
 
 
5
  examples = [
6
  ['The ultimate test of your knowledge is your capacity to convey it to another.']
7
  ]
8
- gr.Interface.load("huggingface/tuner007/pegasus_paraphrase", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
 
1
  import gradio as gr
2
+
3
+ title = "Pegasus"
4
+
5
+ description = "Gradio Demo for Pegasus. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
6
+
7
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1912.08777' target='_blank'>PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarization</a></p>"
8
+
9
  examples = [
10
  ['The ultimate test of your knowledge is your capacity to convey it to another.']
11
  ]
12
+
13
+ gr.Interface.load("huggingface/tuner007/pegasus_paraphrase", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)