Spaces:
Runtime error
Runtime error
better temp control
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ assistant_model = AutoModelForCausalLM.from_pretrained(assistant_id).to(torch_de
|
|
21 |
|
22 |
|
23 |
def run_generation(user_text, use_assistant, temperature, max_new_tokens):
|
24 |
-
if temperature
|
25 |
do_sample = False
|
26 |
else:
|
27 |
do_sample = True
|
|
|
21 |
|
22 |
|
23 |
def run_generation(user_text, use_assistant, temperature, max_new_tokens):
|
24 |
+
if temperature < 0.1:
|
25 |
do_sample = False
|
26 |
else:
|
27 |
do_sample = True
|