Ahsen Khaliq commited on
Commit ·
8d5b843
1
Parent(s): 9f4133a
Create app.py
Browse files12345678910import gradio as grtitle = "CTRLsum"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."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>"examples = [ ['The tower is 324 metres (1,063 ft) tall,'], ["The Moon's orbit around Earth has"], ["The smooth Borealis basin in the Northern Hemisphere covers 40%"]]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()app.pyAdded+10