anzorq commited on
Commit
0bcfb9d
β€’
1 Parent(s): 1e49bf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,7 +43,7 @@ def on_token_change(token):
43
  if token:
44
  model_names, error = get_my_model_names(token)
45
 
46
- return gr.update(visible=not error, choices=model_names, label="Select a model:"), error_str(error)
47
 
48
  def on_load_model(user_model_id, other_model_id, token):
49
 
@@ -167,7 +167,7 @@ with gr.Blocks() as demo:
167
  input_token.change(
168
  fn=on_token_change,
169
  inputs=input_token,
170
- outputs=[group_model, error_output],
171
  queue=False,
172
  scroll_to_output=True)
173
 
@@ -196,4 +196,4 @@ with gr.Blocks() as demo:
196
  """)
197
 
198
  demo.queue()
199
- demo.launch(debug=True)
 
43
  if token:
44
  model_names, error = get_my_model_names(token)
45
 
46
+ return gr.update(visible=not error), gr.update(choices=model_names, label="Select a model:"), error_str(error)
47
 
48
  def on_load_model(user_model_id, other_model_id, token):
49
 
 
167
  input_token.change(
168
  fn=on_token_change,
169
  inputs=input_token,
170
+ outputs=[group_model, radio_model_names, error_output],
171
  queue=False,
172
  scroll_to_output=True)
173
 
 
196
  """)
197
 
198
  demo.queue()
199
+ demo.launch(debug=True)