Deep1994 commited on
Commit
d8aa481
·
1 Parent(s): 9d9b15d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # 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):
 
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):