Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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("
|
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)
|