File size: 560 Bytes
ef1e649
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr

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'>BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</a> | <a href='https://github.com/google-research/bert'>Github Repo</a></p>"

gr.Interface.load("huggingface/bert-base-uncased", description=description, article=article, examples=[
  ["Paris is the [MASK] of France."]
]).launch()