Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -52,9 +52,12 @@ def paraphrase(sentence: str, lang: str, count: str):
|
|
52 |
res_es = [pln_en_to_es(x)[0]['translation_text']
|
53 |
for x in res]
|
54 |
return {'result': res_es}
|
|
|
|
|
|
|
55 |
|
56 |
|
57 |
-
iface = gr.Interface(fn=
|
58 |
inputs=[
|
59 |
gr.inputs.Textbox(
|
60 |
lines=2, placeholder=None, label='Sentence'),
|
|
|
52 |
res_es = [pln_en_to_es(x)[0]['translation_text']
|
53 |
for x in res]
|
54 |
return {'result': res_es}
|
55 |
+
|
56 |
+
def paraphrase_dummy(sentence: str, lang: str, count: str):
|
57 |
+
return {'result': []}
|
58 |
|
59 |
|
60 |
+
iface = gr.Interface(fn=paraphrase_dummy,
|
61 |
inputs=[
|
62 |
gr.inputs.Textbox(
|
63 |
lines=2, placeholder=None, label='Sentence'),
|