Spaces:
Running
Running
Commit
·
341a93b
1
Parent(s):
623bb5f
Update app.py
Browse files
app.py
CHANGED
@@ -349,12 +349,12 @@ Get diffusers compatibility, a free GPU-based Inference Widget and possibility t
|
|
349 |
submit_button_civit = gr.Button("Upload model to Hugging Face", interactive=False)
|
350 |
output = gr.Markdown(label="Output progress", visible=False)
|
351 |
|
352 |
-
demo.load(fn=swap_fill, outputs=[disabled_area, enabled_area])
|
353 |
-
submit_source_civit.change(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit])
|
354 |
-
civit_username_to_bulk.change(fn=list_civit_models, inputs=[civit_username_to_bulk], outputs=[submit_bulk_civit])
|
355 |
-
try_again_button.click(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit])
|
356 |
-
submit_button_civit.click(fn=show_output, inputs=[], outputs=[output]).then(fn=upload_civit_to_hf, inputs=[submit_source_civit, link_civit], outputs=[output])
|
357 |
-
bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output])
|
358 |
gr.LogoutButton(elem_id="logout")
|
359 |
demo.queue()
|
360 |
demo.launch()
|
|
|
349 |
submit_button_civit = gr.Button("Upload model to Hugging Face", interactive=False)
|
350 |
output = gr.Markdown(label="Output progress", visible=False)
|
351 |
|
352 |
+
demo.load(fn=swap_fill, outputs=[disabled_area, enabled_area], queue=False)
|
353 |
+
submit_source_civit.change(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit], queue=False)
|
354 |
+
civit_username_to_bulk.change(fn=list_civit_models, inputs=[civit_username_to_bulk], outputs=[submit_bulk_civit], queue=False)
|
355 |
+
try_again_button.click(fn=check_civit_link, inputs=[submit_source_civit], outputs=[instructions, submit_button_civit, try_again_button, submit_button_civit], queue=False)
|
356 |
+
submit_button_civit.click(fn=show_output, inputs=[], outputs=[output]).then(fn=upload_civit_to_hf, inputs=[submit_source_civit, link_civit], outputs=[output], queue=False)
|
357 |
+
bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output], queue=False)
|
358 |
gr.LogoutButton(elem_id="logout")
|
359 |
demo.queue()
|
360 |
demo.launch()
|