Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
outputs = gr.outputs.Textbox(label="Output Text")
|
| 6 |
|
| 7 |
title = "Transformer (NMT)"
|
| 8 |
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."
|
|
@@ -13,4 +11,4 @@ examples = [
|
|
| 13 |
["PyTorch Hub is a pre-trained model repository designed to facilitate research reproducibility."]
|
| 14 |
]
|
| 15 |
|
| 16 |
-
gr.Interface.load("huggingface/facebook/wmt19-en-de",
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
|
|
|
|
|
|
|
| 4 |
|
| 5 |
title = "Transformer (NMT)"
|
| 6 |
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."
|
|
|
|
| 11 |
["PyTorch Hub is a pre-trained model repository designed to facilitate research reproducibility."]
|
| 12 |
]
|
| 13 |
|
| 14 |
+
gr.Interface.load("huggingface/facebook/wmt19-en-de", title=title, description=description, article=article, examples=examples).launch()
|