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