CoolFace
Apppublic

pytorch/transformers

sourceHugging Faceupdated 5y agoView on Hugging Face
1likes
app.py8 linesDownload Raw Back to root
1import gradio as gr2 3description = "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."4article = "<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>"5 6gr.Interface.load("huggingface/bert-base-uncased", description=description, article=article, examples=[7  ["Paris is the [MASK] of France."]8]).launch()