Ahsen Khaliq commited on
Commit
f6dd6c0
β€’
1 Parent(s): 9cf5495

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
+ title = "Mengzi-BERT"
3
+ description = "Gradio Demo for Mengzi-BERT base model (Chinese). 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/2110.06696' target='_blank'>Mengzi: Towards Lightweight yet Ingenious Pre-trained Models for Chinese</a> | <a href='https://github.com/Langboat/Mengzi' target='_blank'>Github Repo</a></p>"
5
+ examples = [
6
+ ['η”Ÿζ΄»ηš„ηœŸθ°›ζ˜―[MASK]。']
7
+ ]
8
+ gr.Interface.load("huggingface/Langboat/mengzi-bert-base", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()