Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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")
|