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 = [ ["Paris is the capital of France"] ] gr.Interface.load("huggingface/microsoft/xprophetnet-large-wiki100-cased-xglue-ntg",title=title,description=description,article=article, examples=examples).launch(enable_queue=True)