import gradio as gr 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 = """

Scaling Neural Machine Translation | Github Repo

""" examples = [ ["Hello world!"], ["PyTorch Hub is a pre-trained model repository designed to facilitate research reproducibility."] ] gr.Interface.load("huggingface/facebook/wmt19-en-de", title=title, description=description, article=article, examples=examples).launch()