Update app.py
Browse files
app.py
CHANGED
@@ -52,6 +52,7 @@ class TuluChatBot:
|
|
52 |
def gradio_predict(user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty, do_sample):
|
53 |
Tulu_bot.set_system_message(system_message)
|
54 |
if not do_sample:
|
|
|
55 |
temperature = 1.2 # Default value
|
56 |
top_p = 0.9 # Default value
|
57 |
repetition_penalty = 0.9 # Default value
|
|
|
52 |
def gradio_predict(user_message, system_message, max_new_tokens, temperature, top_p, repetition_penalty, do_sample):
|
53 |
Tulu_bot.set_system_message(system_message)
|
54 |
if not do_sample:
|
55 |
+
max_length = 1269
|
56 |
temperature = 1.2 # Default value
|
57 |
top_p = 0.9 # Default value
|
58 |
repetition_penalty = 0.9 # Default value
|