xlm-mlm-en-2048 / app.py
Ahsen Khaliq
Create app.py
20b2f41
raw
history blame
588 Bytes
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)