import gradio as gr title = "MarianMT" description = "Gradio Demo for MarianMT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." article = "

Marian: Fast Neural Machine Translation in C++

" examples = [ ['我叫沃尔夫冈,我住在柏林。'] ] gr.Interface.load("huggingface/Helsinki-NLP/opus-mt-zh-en", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)