Spaces:
Runtime error
Runtime error
NickyNicky
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -73,9 +73,9 @@ def generate_text(prompt, max_length=2100):
|
|
73 |
max_new_tokens=max_length
|
74 |
generation_config = GenerationConfig(
|
75 |
max_new_tokens=max_new_tokens,
|
76 |
-
temperature=0.
|
77 |
#top_p=0.9,
|
78 |
-
top_k=
|
79 |
repetition_penalty=1., #1.1
|
80 |
do_sample=True,
|
81 |
)
|
|
|
73 |
max_new_tokens=max_length
|
74 |
generation_config = GenerationConfig(
|
75 |
max_new_tokens=max_new_tokens,
|
76 |
+
temperature=0.15,
|
77 |
#top_p=0.9,
|
78 |
+
top_k=40, # 45
|
79 |
repetition_penalty=1., #1.1
|
80 |
do_sample=True,
|
81 |
)
|