Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
998e5bc
1
Parent(s):
bd21a39
Update app.py
Browse files
app.py
CHANGED
@@ -417,10 +417,10 @@ with gr.Blocks(css="style.css") as demo:
|
|
417 |
return inversion_progress.update(visible=False)
|
418 |
|
419 |
def update_edit_progress_visibility(input_image, do_inversion):
|
420 |
-
if do_inversion and not input_image is None:
|
421 |
-
|
422 |
-
else:
|
423 |
-
return inversion_progress.update(visible=True
|
424 |
|
425 |
|
426 |
gr.HTML(intro)
|
@@ -649,7 +649,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
649 |
tar_cfg_scale
|
650 |
],
|
651 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
652 |
-
).
|
653 |
fn=edit,
|
654 |
inputs=[input_image,
|
655 |
wts, zs,
|
|
|
417 |
return inversion_progress.update(visible=False)
|
418 |
|
419 |
def update_edit_progress_visibility(input_image, do_inversion):
|
420 |
+
# if do_inversion and not input_image is None:
|
421 |
+
# return inversion_progress.update(visible=True)
|
422 |
+
# else:
|
423 |
+
return inversion_progress.update(visible=True)
|
424 |
|
425 |
|
426 |
gr.HTML(intro)
|
|
|
649 |
tar_cfg_scale
|
650 |
],
|
651 |
outputs=[wts, zs, do_inversion, inversion_progress],
|
652 |
+
).success(
|
653 |
fn=edit,
|
654 |
inputs=[input_image,
|
655 |
wts, zs,
|