Yntec commited on
Commit
7ce358b
1 Parent(s): 54a6dbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ with gr.Blocks() as demo:
73
 
74
  for m, o in zip(current_models, output):
75
  gen_event = gen_button.click(gen_fn, [m, txt_input], o, concurrency_limit=None, queue=False)
76
- stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
77
  with gr.Accordion('Model selection'):
78
  model_choice = gr.CheckboxGroup(models, label = f'Choose up to {int(num_models)} different models from the {len(models)} available!', value=default_models, interactive=True)
79
  #model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 2 available! Untick them to only use one!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
 
73
 
74
  for m, o in zip(current_models, output):
75
  gen_event = gen_button.click(gen_fn, [m, txt_input], o, concurrency_limit=None, queue=False)
76
+ #stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
77
  with gr.Accordion('Model selection'):
78
  model_choice = gr.CheckboxGroup(models, label = f'Choose up to {int(num_models)} different models from the {len(models)} available!', value=default_models, interactive=True)
79
  #model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 2 available! Untick them to only use one!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)