KittyCat00 commited on
Commit
02da43b
·
verified ·
1 Parent(s): 92a809d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -520,7 +520,7 @@ def main(input_text, max_new_tokens):
520
  top_k=25, temperature=1.4, text_to_token_ids=text_to_token_ids, tokenizer=tokenizer
521
  )
522
  thingy = tokenizer.decode(token_ids.squeeze(0).tolist())
523
- new_thingy = re.sub(".", ". Meow.", thingy)
524
  # return tokenizer.decode(token_ids.squeeze(0).tolist())
525
  # return tokenizer.decode(new_thing.squeeze(0).tolist())
526
  print(thingy)
 
520
  top_k=25, temperature=1.4, text_to_token_ids=text_to_token_ids, tokenizer=tokenizer
521
  )
522
  thingy = tokenizer.decode(token_ids.squeeze(0).tolist())
523
+ new_thingy = re.sub("\.", ". Meow.", thingy)
524
  # return tokenizer.decode(token_ids.squeeze(0).tolist())
525
  # return tokenizer.decode(new_thing.squeeze(0).tolist())
526
  print(thingy)