transformers / app.py
akhaliq's picture
akhaliq HF staff
Create app.py
ef1e649
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()