jaimin commited on
Commit
5e32e67
β€’
1 Parent(s): 3868a3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -58,7 +58,11 @@ def get_paraphrases_pytorchlight(text, n_predictions=3, top_k=50, max_length=256
58
  l=[]
59
  for i in range(len(a)):
60
  l.append(" ".join(a[i]))
61
- return l
 
 
 
 
62
 
63
  iface = gr.Interface(fn=get_paraphrases_pytorchlight, inputs=[gr.inputs.Textbox(lines=5)],outputs="text")
64
  #iface1 = gr.Interface(fn=get_paraphrases_pytorchlight, inputs=[gr.inputs.Textbox(lines=5)],outputs="text")
 
58
  l=[]
59
  for i in range(len(a)):
60
  l.append(" ".join(a[i]))
61
+ final_output=[]
62
+ for i in range(len(out)):
63
+ final_output.append("* " + out[i] + ".")
64
+ paraphrase = "\n".join(final_output)
65
+ return paraphrase
66
 
67
  iface = gr.Interface(fn=get_paraphrases_pytorchlight, inputs=[gr.inputs.Textbox(lines=5)],outputs="text")
68
  #iface1 = gr.Interface(fn=get_paraphrases_pytorchlight, inputs=[gr.inputs.Textbox(lines=5)],outputs="text")