Spaces:
Sleeping
Sleeping
Unityraptor
commited on
Commit
•
9db86ab
1
Parent(s):
12df622
Update app.py
Browse files
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
|
49 |
out = translate(paraphrase(mytextInput))
|
50 |
return out
|
51 |
|
52 |
-
iface = gr.Interface(
|
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 |
|