Spaces:
Runtime error
Runtime error
File size: 814 Bytes
e5eda68 879ba71 e5eda68 879ba71 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
inputs = gr.inputs.Textbox(lines=5, label="Input Text in English")
outputs = gr.outputs.Textbox(label="Output Text")
title = "Transformer (NMT)"
description = "Gradio demo for Transformer (NMT). 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/1806.00187'>Scaling Neural Machine Translation</a> | <a href='https://github.com/pytorch/fairseq/'>Github Repo</a></p>"""
examples = [
["Hello world!"],
["PyTorch Hub is a pre-trained model repository designed to facilitate research reproducibility."]
]
gr.Interface.load("huggingface/facebook/wmt19-en-de", inputs, outputs, title=title, description=description, article=article, examples=examples).launch() |