Hmjz100 commited on
Commit
cde44ab
·
1 Parent(s): b7dec5f

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -176,7 +176,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
176
  )
177
 
178
  def update_max_tokens(model_name):
179
- max_tokens.maximum = model_max_tokens[model_name]
180
 
181
  model = gr.Radio(
182
  ["gpt-4", "gpt-4-32k", "gpt-3.5-turbo", "gpt-3.5-turbo-16k"],
 
176
  )
177
 
178
  def update_max_tokens(model_name):
179
+ max_tokens.change(maximum = model_max_tokens[model_name])
180
 
181
  model = gr.Radio(
182
  ["gpt-4", "gpt-4-32k", "gpt-3.5-turbo", "gpt-3.5-turbo-16k"],