Jipski commited on
Commit
195e9be
1 Parent(s): 6280603

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -49,11 +49,10 @@ for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
49
  #text = text[: text.find(args.stop_token) if args.stop_token else None]
50
  # Add the prompt at the beginning of the sequence. Remove the excess text that was used for pre-processing
51
  total_sequence = (
52
- st.session_state.catch_rand + sent + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
53
  )
54
  generated_sequences.append(total_sequence)
55
  print(total_sequence)
56
- old = generated_sequences[-1]
57
 
58
 
59
 
 
49
  #text = text[: text.find(args.stop_token) if args.stop_token else None]
50
  # Add the prompt at the beginning of the sequence. Remove the excess text that was used for pre-processing
51
  total_sequence = (
52
+ sent + text[len(tokenizer.decode(encoded_prompt[0], clean_up_tokenization_spaces=True)) :]
53
  )
54
  generated_sequences.append(total_sequence)
55
  print(total_sequence)
 
56
 
57
 
58