|
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 = "<p style='text-align: center'><a href='https://arxiv.org/abs/1810.04805' target='_blank'>BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</a></p>" |
|
|
|
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) |