opus-mt-zh-en / app.py
Ahsen Khaliq
Create app.py
e315ba0
raw
history blame
No virus
623 Bytes
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)