Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,9 +60,9 @@ if text != '':
|
|
60 |
final_outputs =[]
|
61 |
for beam_output in beam_outputs:
|
62 |
sent = tokenizer.decode(beam_output, skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
63 |
-
|
64 |
-
|
65 |
-
final_outputs.append(sent)
|
66 |
|
67 |
st.subheader('Paraphrased Text')
|
68 |
for i, final_output in enumerate(final_outputs):
|
|
|
60 |
final_outputs =[]
|
61 |
for beam_output in beam_outputs:
|
62 |
sent = tokenizer.decode(beam_output, skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
63 |
+
if sent.lower() != text.lower() and sent not in final_outputs:
|
64 |
+
final_outputs.append(sent)
|
65 |
+
# final_outputs.append(sent)
|
66 |
|
67 |
st.subheader('Paraphrased Text')
|
68 |
for i, final_output in enumerate(final_outputs):
|