Ahsen Khaliq commited on
Commit
3411321
1 Parent(s): 8d5b843

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import gradio as gr
2
  title = "CTRLsum"
3
- description = "Gradio Demo for CTRLsum: Towards Generic Controllable Text Summarization. 'GPT-J' refers to the class of model, while '6B' represents the number of trainable parameters. 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://github.com/kingoflolz/mesh-transformer-jax' target='_blank'>GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model</a></p>"
5
  examples = [
6
- ['The tower is 324 metres (1,063 ft) tall,'],
7
- ["The Moon's orbit around Earth has"],
8
- ["The smooth Borealis basin in the Northern Hemisphere covers 40%"]
9
  ]
10
  gr.Interface.load("huggingface/hyunwoongko/ctrlsum-cnndm", inputs=gr.inputs.Textbox(lines=10, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
1
  import gradio as gr
2
  title = "CTRLsum"
3
+ description = "Gradio Demo for CTRLsum: Towards Generic Controllable Text Summarization. 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://arxiv.org/abs/2012.04281' target='_blank'>CTRLsum: Towards Generic Controllable Text Summarization</a> | <a href='https://github.com/salesforce/ctrl-sum' target='_blank'>Github Repo</a></p>"
5
  examples = [
6
+ ["""Paris, France's capital, is a major European city and a global center for art, fashion, gastronomy and culture. Its 19th-century cityscape is crisscrossed by wide boulevards and the River Seine. Beyond such landmarks as the Eiffel Tower and the 12th-century, Gothic Notre-Dame cathedral, the city is known for its cafe culture and designer boutiques along the Rue du Faubourg Saint-Honoré."""],
7
+ ["""London, the capital of England and the United Kingdom, is a 21st-century city with history stretching back to Roman times. At its centre stand the imposing Houses of Parliament, the iconic ‘Big Ben’ clock tower and Westminster Abbey, site of British monarch coronations. Across the Thames River, the London Eye observation wheel provides panoramic views of the South Bank cultural complex, and the entire city."""]
 
8
  ]
9
  gr.Interface.load("huggingface/hyunwoongko/ctrlsum-cnndm", inputs=gr.inputs.Textbox(lines=10, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()