Ahsen Khaliq
Create app.py
f6dd6c0
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 = "<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>"
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()