Stefan Dumitrescu commited on
Commit
9194a02
·
1 Parent(s): c485299
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
65
 
66
  # Add the prompt at the beginning of the sequence. Remove the excess text that was used for pre-processing
67
  total_sequence = (
68
- sent + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)):]
69
  )
70
 
71
  generated_sequences.append(total_sequence)
 
65
 
66
  # Add the prompt at the beginning of the sequence. Remove the excess text that was used for pre-processing
67
  total_sequence = (
68
+ text_element + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)):]
69
  )
70
 
71
  generated_sequences.append(total_sequence)