import gradio as gr title = "XLM-ProphetNet" description = "Gradio Demo for XLM-ProphetNet. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." article = "

ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-training

" examples = [ ["Microsoft Corporation intends to officially end free support for the Windows 7 operating system after January 14, 2020, according to the official portal of the organization. From that day, users of this system will not be able to receive security updates, which could make their computers vulnerable to cyber attacks."] ] gr.Interface.load("huggingface/microsoft/xprophetnet-large-wiki100-cased-xglue-ntg",inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)