multimodalart HF staff commited on
Commit
5378dfe
1 Parent(s): 6028c08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -298,10 +298,10 @@ with gr.Blocks(css=css) as demo:
298
 
299
  type_of_thing.change(fn=swap_text, inputs=[type_of_thing], outputs=[thing_description, thing_image_example, things_naming, perc_txt_encoder], queue=False)
300
  training_summary = gr.Textbox("", visible=False, label="Training Summary")
301
- steps.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary])
302
- perc_txt_encoder.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary])
303
  for file in file_collection:
304
- file.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary])
305
  train_btn = gr.Button("Start Training")
306
  with gr.Box(visible=False) as try_your_model:
307
  gr.Markdown("## Try your model")
 
298
 
299
  type_of_thing.change(fn=swap_text, inputs=[type_of_thing], outputs=[thing_description, thing_image_example, things_naming, perc_txt_encoder], queue=False)
300
  training_summary = gr.Textbox("", visible=False, label="Training Summary")
301
+ steps.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary], queue=False)
302
+ perc_txt_encoder.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary], queue=False)
303
  for file in file_collection:
304
+ file.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary], queue=False)
305
  train_btn = gr.Button("Start Training")
306
  with gr.Box(visible=False) as try_your_model:
307
  gr.Markdown("## Try your model")