orzhan commited on
Commit
a6923c1
·
1 Parent(s): 8c25f61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ def infer(input_ids):
25
  )
26
 
27
  return output_sequences
28
- default_value = "А ну иди сюда, придурок"
29
 
30
  #prompts
31
  st.title("Дело детоксификации на ruT5")
@@ -49,7 +49,7 @@ for generated_sequence_idx, generated_sequence in enumerate(output_sequences):
49
  generated_sequences = generated_sequence.tolist()
50
 
51
  # Decode text
52
- text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
53
 
54
  # Remove all text after the stop token
55
  #text = text[: text.find(args.stop_token) if args.stop_token else None]
 
25
  )
26
 
27
  return output_sequences
28
+ default_value = "это твари а не люди"
29
 
30
  #prompts
31
  st.title("Дело детоксификации на ruT5")
 
49
  generated_sequences = generated_sequence.tolist()
50
 
51
  # Decode text
52
+ text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True, )
53
 
54
  # Remove all text after the stop token
55
  #text = text[: text.find(args.stop_token) if args.stop_token else None]