Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
03c9e14
1
Parent(s):
0b00f1f
Update app.py
Browse files
app.py
CHANGED
@@ -362,9 +362,9 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
362 |
|
363 |
dataset_folder = gr.State()
|
364 |
|
365 |
-
images.upload(load_captioning, inputs=[images, concept_sentence], outputs=output_components
|
366 |
|
367 |
-
start.click(fn=create_dataset, inputs=[images] + caption_list, outputs=dataset_folder
|
368 |
fn=start_training,
|
369 |
inputs=[
|
370 |
lora_name,
|
@@ -378,11 +378,10 @@ with gr.Blocks(theme=theme, css=css) as demo:
|
|
378 |
sample_3,
|
379 |
],
|
380 |
outputs=progress_area,
|
381 |
-
queue=False,
|
382 |
)
|
383 |
|
384 |
do_captioning.click(fn=run_captioning, inputs=[images, concept_sentence] + caption_list, outputs=caption_list)
|
385 |
-
demo.load(fn=swap_visibilty, outputs=main_ui
|
386 |
|
387 |
if __name__ == "__main__":
|
388 |
demo.queue()
|
|
|
362 |
|
363 |
dataset_folder = gr.State()
|
364 |
|
365 |
+
images.upload(load_captioning, inputs=[images, concept_sentence], outputs=output_components)
|
366 |
|
367 |
+
start.click(fn=create_dataset, inputs=[images] + caption_list, outputs=dataset_folder).then(
|
368 |
fn=start_training,
|
369 |
inputs=[
|
370 |
lora_name,
|
|
|
378 |
sample_3,
|
379 |
],
|
380 |
outputs=progress_area,
|
|
|
381 |
)
|
382 |
|
383 |
do_captioning.click(fn=run_captioning, inputs=[images, concept_sentence] + caption_list, outputs=caption_list)
|
384 |
+
demo.load(fn=swap_visibilty, outputs=main_ui)
|
385 |
|
386 |
if __name__ == "__main__":
|
387 |
demo.queue()
|