Abubakar Abid commited on
Commit
251de26
·
1 Parent(s): 5340706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,4 +1,9 @@
1
  import gradio as gr
2
 
3
 
4
- gr.Interface.load("huggingface/t5-base").launch()
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
 
4
+ translator = gr.Interface.load("huggingface/t5-base")
5
+
6
+ def both(x):
7
+ return x, translator(x)
8
+
9
+ gr.Interface(both, "text", ["text", "text"], title="Translate text from English to German using HF APIs!").launch()