migueldeguzmandev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def generate_response(input_text, temperature):
|
|
26 |
no_repeat_ngram_size=2,
|
27 |
top_k=50,
|
28 |
top_p=0.95,
|
29 |
-
do_sample=
|
30 |
)
|
31 |
|
32 |
# Decode the generated response
|
|
|
26 |
no_repeat_ngram_size=2,
|
27 |
top_k=50,
|
28 |
top_p=0.95,
|
29 |
+
do_sample=True, # Set do_sample to True when using temperature
|
30 |
)
|
31 |
|
32 |
# Decode the generated response
|