charliebaby2023 commited on
Commit
b6fedff
1 Parent(s): b9a4900

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -106,7 +106,7 @@ def make_me():
106
  current_models = [gr.Textbox(m, visible = False) for m in default_models]
107
 
108
  for m, o in zip(current_models, output):
109
- gen_event = gen_button.click(gen_fn, [m, txt_input + random.randint(1,00)], o)
110
  stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
111
  with gr.Accordion('Model selection'):
112
  model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 800 available!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)
 
106
  current_models = [gr.Textbox(m, visible = False) for m in default_models]
107
 
108
  for m, o in zip(current_models, output):
109
+ gen_event = gen_button.click(gen_fn, [m, get_current_time()], o)
110
  stop_button.click(lambda s: gr.update(interactive = False), None, stop_button, cancels = [gen_event])
111
  with gr.Accordion('Model selection'):
112
  model_choice = gr.CheckboxGroup(models, label = f'Choose up to {num_models} different models from the 800 available!', value = default_models, multiselect = True, max_choices = num_models, interactive = True, filterable = False)