Unityraptor commited on
Commit
9db86ab
1 Parent(s): 12df622

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,11 +45,11 @@ def translate(myinput):
45
  myout = translator(myinput,src_lang="eng_Latn",tgt_lang="fra_Latn")
46
  return myout
47
 
48
- def launch(mytextInput):
49
  out = translate(paraphrase(mytextInput))
50
  return out
51
 
52
- iface = gr.Interface(launch,
53
  inputs="textbox",
54
  outputs="textbox")
55
 
 
45
  myout = translator(myinput,src_lang="eng_Latn",tgt_lang="fra_Latn")
46
  return myout
47
 
48
+ def predict(mytextInput):
49
  out = translate(paraphrase(mytextInput))
50
  return out
51
 
52
+ iface = gr.Interface(predict,
53
  inputs="textbox",
54
  outputs="textbox")
55