deep-learning-analytics commited on
Commit
f903b30
1 Parent(s): 22f0471

Update app.py

Browse files

Final Code hopefully!

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ results = correct_grammar(sent, num_return_sequences)
24
  generated_sequences = []
25
  for generated_sequence_idx, generated_sequence in enumerate(results):
26
  # Decode text
27
- text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
28
  generated_sequences.append(text)
29
 
30
  st.write(generated_sequences)
 
24
  generated_sequences = []
25
  for generated_sequence_idx, generated_sequence in enumerate(results):
26
  # Decode text
27
+ text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True, skip_special_tokens=True)
28
  generated_sequences.append(text)
29
 
30
  st.write(generated_sequences)