akhaliq HF staff commited on
Commit
b2252fb
1 Parent(s): 879ba71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1,8 +1,6 @@
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
 
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", inputs, outputs, title=title, description=description, article=article, examples=examples).launch()
 
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()