import gradio as gr title = "Mengzi-BERT" 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." article = "

Mengzi: Towards Lightweight yet Ingenious Pre-trained Models for Chinese | Github Repo

" examples = [ ['生活的真谛是[MASK]。'] ] 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()