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

BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

" examples = [ ['Paris is the [MASK] of France.'] ] gr.Interface.load("huggingface/bert-base-uncased", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)