File size: 623 Bytes
e315ba0
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 = "<p style='text-align: center'><a href='https://arxiv.org/abs/1804.00344' target='_blank'>Marian: Fast Neural Machine Translation in C++</a></p>"

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)