Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def delete_prev_fn(history=[]):
|
|
69 |
return history, message or ''
|
70 |
|
71 |
def generate(message, history_with_input, max_new_tokens, temperature, top_p, top_k):
|
72 |
-
if max_new_tokens > MAX_MAX_NEW_TOKENS:
|
73 |
raise ValueError
|
74 |
|
75 |
history = history_with_input[:-1]
|
|
|
69 |
return history, message or ''
|
70 |
|
71 |
def generate(message, history_with_input, max_new_tokens, temperature, top_p, top_k):
|
72 |
+
if int(max_new_tokens) > MAX_MAX_NEW_TOKENS:
|
73 |
raise ValueError
|
74 |
|
75 |
history = history_with_input[:-1]
|