Tonic commited on
Commit
c7eff8d
·
1 Parent(s): f8c306d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]