File size: 588 Bytes
20b2f41
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

title = "XLM"

description = "Gradio Demo for XLM. 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://arxiv.org/abs/1901.07291' target='_blank'>Cross-lingual Language Model Pretraining</a></p>"

examples = [
    ['The goal of life is <special1>.']
]

gr.Interface.load("huggingface/xlm-mlm-en-2048", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)