milyiyo commited on
Commit
f42ce1d
1 Parent(s): 7bc4865

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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=paraphrase,
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'),