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

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
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()