Spaces:
Running
Running
Commit
•
da93b9f
1
Parent(s):
4d371f5
Update app.py
Browse files
app.py
CHANGED
@@ -337,16 +337,16 @@ css = '''
|
|
337 |
'''
|
338 |
|
339 |
with gr.Blocks(css=css) as demo:
|
340 |
-
gr.Markdown('''# Upload your CivitAI
|
341 |
-
Get diffusers compatibility, a free GPU-based Inference Widget and possibility to submit to the [LoRA the Explorer](https://huggingface.co/spaces/multimodalart/LoraTheExplorer)
|
342 |
''')
|
343 |
gr.LoginButton(elem_id="login")
|
344 |
with gr.Column(elem_id="disabled_upload") as disabled_area:
|
345 |
with gr.Row():
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
submit_button_civit = gr.Button("Upload model to Hugging Face and submit", interactive=False)
|
351 |
with gr.Column(visible=False) as enabled_area:
|
352 |
with gr.Column():
|
@@ -376,5 +376,6 @@ Get diffusers compatibility, a free GPU-based Inference Widget and possibility t
|
|
376 |
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)
|
377 |
bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output], queue=False)
|
378 |
gr.LogoutButton(elem_id="logout")
|
|
|
379 |
demo.queue()
|
380 |
demo.launch()
|
|
|
337 |
'''
|
338 |
|
339 |
with gr.Blocks(css=css) as demo:
|
340 |
+
gr.Markdown('''# Upload your CivitAI LoRA to Hugging Face 🤗
|
341 |
+
Get diffusers compatibility, a free GPU-based Inference Widget and possibility to submit to the [LoRA the Explorer](https://huggingface.co/spaces/multimodalart/LoraTheExplorer) ✨
|
342 |
''')
|
343 |
gr.LoginButton(elem_id="login")
|
344 |
with gr.Column(elem_id="disabled_upload") as disabled_area:
|
345 |
with gr.Row():
|
346 |
+
submit_source_civit = gr.Textbox(
|
347 |
+
label="CivitAI model URL",
|
348 |
+
info="URL of the CivitAI model, for now only SDXL LoRAs are supported",
|
349 |
+
)
|
350 |
submit_button_civit = gr.Button("Upload model to Hugging Face and submit", interactive=False)
|
351 |
with gr.Column(visible=False) as enabled_area:
|
352 |
with gr.Column():
|
|
|
376 |
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)
|
377 |
bulk_button.click(fn=show_output, inputs=[], outputs=[output]).then(fn=bulk_upload, inputs=[submit_bulk_civit, link_civit], outputs=[output], queue=False)
|
378 |
gr.LogoutButton(elem_id="logout")
|
379 |
+
|
380 |
demo.queue()
|
381 |
demo.launch()
|