Omaratef3221
commited on
Commit
•
4a4e331
1
Parent(s):
4b97baa
Update README.md
Browse files
README.md
CHANGED
@@ -52,5 +52,5 @@ Dialogue:
|
|
52 |
# Generate a response to an input statement
|
53 |
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
|
54 |
output = model.generate(input_ids, top_p = 0.6, do_sample=True, temperature = 1.2, max_length = 512)
|
55 |
-
print(tokenizer.decode(output[0], skip_special_tokens=True).replace('
|
56 |
```
|
|
|
52 |
# Generate a response to an input statement
|
53 |
input_ids = tokenizer(prompt, return_tensors='pt').input_ids
|
54 |
output = model.generate(input_ids, top_p = 0.6, do_sample=True, temperature = 1.2, max_length = 512)
|
55 |
+
print(tokenizer.decode(output[0], skip_special_tokens=True).replace('#Person2#:', '\n#Person2#:').replace('#Person1#:', '\n#Person1#:'))
|
56 |
```
|