Commit
•
f27f206
1
Parent(s):
7405926
Update app.py
Browse files
app.py
CHANGED
@@ -523,6 +523,7 @@ def swap_opacity(token: gr.OAuthToken | None):
|
|
523 |
return gr.update(elem_classes=["main_unlogged"], elem_id="login")
|
524 |
else:
|
525 |
return gr.update(elem_classes=["main_logged"])
|
|
|
526 |
with gr.Blocks(css=css, theme=theme) as demo:
|
527 |
dataset_folder = gr.State()
|
528 |
gr.Markdown('''# LoRA Ease 🧞♂️
|
@@ -985,12 +986,7 @@ with gr.Blocks(css=css, theme=theme) as demo:
|
|
985 |
do_captioning.click(
|
986 |
fn=run_captioning, inputs=[images] + caption_list + [training_option], outputs=caption_list
|
987 |
)
|
988 |
-
demo.load(fn=swap_opacity, outputs=[main_ui], queue=False, concurrency_limit=50)
|
989 |
-
fn=check_token,
|
990 |
-
outputs=[no_payment_method, start],
|
991 |
-
concurrency_limit=50,
|
992 |
-
queue=False
|
993 |
-
)
|
994 |
if __name__ == "__main__":
|
995 |
demo.queue()
|
996 |
demo.launch(share=True)
|
|
|
523 |
return gr.update(elem_classes=["main_unlogged"], elem_id="login")
|
524 |
else:
|
525 |
return gr.update(elem_classes=["main_logged"])
|
526 |
+
|
527 |
with gr.Blocks(css=css, theme=theme) as demo:
|
528 |
dataset_folder = gr.State()
|
529 |
gr.Markdown('''# LoRA Ease 🧞♂️
|
|
|
986 |
do_captioning.click(
|
987 |
fn=run_captioning, inputs=[images] + caption_list + [training_option], outputs=caption_list
|
988 |
)
|
989 |
+
demo.load(fn=swap_opacity, outputs=[main_ui], queue=False, concurrency_limit=50)
|
|
|
|
|
|
|
|
|
|
|
990 |
if __name__ == "__main__":
|
991 |
demo.queue()
|
992 |
demo.launch(share=True)
|