Linoy Tsaban
commited on
Commit
·
f76efd8
1
Parent(s):
330dade
Update app.py
Browse files
app.py
CHANGED
|
@@ -268,7 +268,10 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 268 |
|
| 269 |
def show_reconstruction_button():
|
| 270 |
return reconstruct_button.update(visible=True)
|
| 271 |
-
|
|
|
|
|
|
|
|
|
|
| 272 |
def hide_reconstruction_buttons():
|
| 273 |
return reconstruct_button.update(visible=False), hide_reconstruct_button.update(visible=False)
|
| 274 |
|
|
@@ -480,10 +483,9 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 480 |
|
| 481 |
hide_reconstruct_button.click(fn = hide_reconstruction,
|
| 482 |
outputs=[ddpm_edited_image],
|
| 483 |
-
queue=False).then(fn =
|
| 484 |
outputs=[reconstruct_button,
|
| 485 |
-
hide_reconstruct_button])
|
| 486 |
-
outputs=[reconstruct_button])
|
| 487 |
|
| 488 |
|
| 489 |
# Repeat inversion when these params are changed:
|
|
|
|
| 268 |
|
| 269 |
def show_reconstruction_button():
|
| 270 |
return reconstruct_button.update(visible=True)
|
| 271 |
+
|
| 272 |
+
def hide_hide_reconstruction_button():
|
| 273 |
+
return reconstruct_button.update(visible=True),hide_reconstruct_button.update(visible=False)
|
| 274 |
+
|
| 275 |
def hide_reconstruction_buttons():
|
| 276 |
return reconstruct_button.update(visible=False), hide_reconstruct_button.update(visible=False)
|
| 277 |
|
|
|
|
| 483 |
|
| 484 |
hide_reconstruct_button.click(fn = hide_reconstruction,
|
| 485 |
outputs=[ddpm_edited_image],
|
| 486 |
+
queue=False).then(fn = hide_hide_reconstruction_button,
|
| 487 |
outputs=[reconstruct_button,
|
| 488 |
+
hide_reconstruct_button])
|
|
|
|
| 489 |
|
| 490 |
|
| 491 |
# Repeat inversion when these params are changed:
|