Spaces:
Runtime error
Runtime error
dennis-fast
commited on
Commit
·
440f6f8
1
Parent(s):
bdbc574
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ def predict(input, history=[]):
|
|
19 |
max_length=200,
|
20 |
pad_token_id=tokenizer.eos_token_id,
|
21 |
no_repeat_ngram_size=3,
|
22 |
-
|
23 |
-
|
24 |
-
top_p=0.
|
25 |
temperature = 0.8
|
26 |
).tolist()
|
27 |
|
|
|
19 |
max_length=200,
|
20 |
pad_token_id=tokenizer.eos_token_id,
|
21 |
no_repeat_ngram_size=3,
|
22 |
+
do_sample=True,
|
23 |
+
top_k=100,
|
24 |
+
top_p=0.7,
|
25 |
temperature = 0.8
|
26 |
).tolist()
|
27 |
|