akhaliq HF staff commited on
Commit
ef1e649
1 Parent(s): c0dcfff

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ 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."
4
+ 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>"
5
+
6
+ gr.Interface.load("huggingface/bert-base-uncased", description=description, article=article, examples=[
7
+ ["Paris is the [MASK] of France."]
8
+ ]).launch()