import gradio as gr title = "CTRLsum" 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." article = "

CTRLsum: Towards Generic Controllable Text Summarization | Github Repo

" examples = [ ["""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é."""], ["""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."""] ] 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()