Spaces:
Runtime error
Runtime error
TheBlueberry-AI
commited on
Commit
•
b169b98
1
Parent(s):
e3c9142
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def generate(
|
|
15 |
prompt, history, temperature=0.5, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
16 |
):
|
17 |
temperature = float(temperature)
|
18 |
-
|
19 |
temperature = 1e-2
|
20 |
top_p = float(top_p)
|
21 |
|
|
|
15 |
prompt, history, temperature=0.5, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
16 |
):
|
17 |
temperature = float(temperature)
|
18 |
+
if temperature < 1e-2:
|
19 |
temperature = 1e-2
|
20 |
top_p = float(top_p)
|
21 |
|