Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -500,32 +500,32 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
500 |
)
|
501 |
|
502 |
gr.on(
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
],
|
525 |
-
|
526 |
-
|
527 |
|
528 |
-
|
529 |
|
530 |
|
531 |
if __name__ == "__main__":
|
|
|
500 |
)
|
501 |
|
502 |
gr.on(
|
503 |
+
triggers=[steps.change],
|
504 |
+
fn=update_pricing,
|
505 |
+
inputs=[steps],
|
506 |
+
outputs=[cost_preview, cost_preview_info, payment_update, start]
|
507 |
+
)
|
508 |
+
|
509 |
+
start.click(fn=create_dataset, inputs=[images] + caption_list, outputs=dataset_folder).then(
|
510 |
+
fn=start_training,
|
511 |
+
inputs=[
|
512 |
+
lora_name,
|
513 |
+
concept_sentence,
|
514 |
+
which_model,
|
515 |
+
steps,
|
516 |
+
lr,
|
517 |
+
rank,
|
518 |
+
dataset_folder,
|
519 |
+
sample_1,
|
520 |
+
sample_2,
|
521 |
+
sample_3,
|
522 |
+
use_more_advanced_options,
|
523 |
+
more_advanced_options
|
524 |
],
|
525 |
+
outputs=progress_area,
|
526 |
+
)
|
527 |
|
528 |
+
do_captioning.click(fn=run_captioning, inputs=[images, concept_sentence] + caption_list, outputs=caption_list)
|
529 |
|
530 |
|
531 |
if __name__ == "__main__":
|