multimodalart HF staff commited on
Commit
c8f1310
1 Parent(s): 9644b52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -435,7 +435,7 @@ with gr.Blocks(css=css) as demo:
435
  convert_button = gr.Button("Convert to CKPT", visible=False)
436
 
437
  #Swap the examples and the % of text encoder trained depending if it is an object, person or style
438
- type_of_thing.change(fn=swap_text, inputs=[type_of_thing], outputs=[thing_description, thing_image_example, things_naming, perc_txt_encoder], queue=False)
439
 
440
  #Update the summary box below the UI according to how many images are uploaded and whether users are using custom settings or not
441
  for file in file_collection:
@@ -444,7 +444,7 @@ with gr.Blocks(css=css) as demo:
444
  perc_txt_encoder.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary, training_summary_text], queue=False)
445
 
446
  #Give more options if the user wants to finish everything after training
447
- training_summary_checkbox.change(fn=checkbox_swap, inputs=training_summary_checkbox, outputs=[training_summary_token_message, training_summary_token, training_summary_model_name])
448
  #Add a message for while it is in training
449
  train_btn.click(lambda:gr.update(visible=True), inputs=None, outputs=training_ongoing)
450
 
@@ -459,6 +459,6 @@ with gr.Blocks(css=css) as demo:
459
  convert_button.click(fn=convert_to_ckpt, inputs=[], outputs=result, queue=True)
460
 
461
  #Checks if the training is running
462
- demo.load(fn=check_status, inputs=top_description, outputs=[top_description, try_your_model, push_to_hub, result, convert_button], queue=False)
463
 
464
  demo.queue(default_enabled=False).launch(debug=True)
 
435
  convert_button = gr.Button("Convert to CKPT", visible=False)
436
 
437
  #Swap the examples and the % of text encoder trained depending if it is an object, person or style
438
+ type_of_thing.change(fn=swap_text, inputs=[type_of_thing], outputs=[thing_description, thing_image_example, things_naming, perc_txt_encoder], queue=False, show_progress=False)
439
 
440
  #Update the summary box below the UI according to how many images are uploaded and whether users are using custom settings or not
441
  for file in file_collection:
 
444
  perc_txt_encoder.change(fn=count_files, inputs=file_collection+[type_of_thing]+[steps]+[perc_txt_encoder]+[swap_auto_calculated], outputs=[training_summary, training_summary_text], queue=False)
445
 
446
  #Give more options if the user wants to finish everything after training
447
+ training_summary_checkbox.change(fn=checkbox_swap, inputs=training_summary_checkbox, outputs=[training_summary_token_message, training_summary_token, training_summary_model_name],queue=False, show_progress=False)
448
  #Add a message for while it is in training
449
  train_btn.click(lambda:gr.update(visible=True), inputs=None, outputs=training_ongoing)
450
 
 
459
  convert_button.click(fn=convert_to_ckpt, inputs=[], outputs=result, queue=True)
460
 
461
  #Checks if the training is running
462
+ demo.load(fn=check_status, inputs=top_description, outputs=[top_description, try_your_model, push_to_hub, result, convert_button], queue=False, show_progress=False)
463
 
464
  demo.queue(default_enabled=False).launch(debug=True)