Update app.py
Browse files
app.py
CHANGED
|
@@ -465,6 +465,12 @@ with gr.Blocks(css=css) as demo:
|
|
| 465 |
outputs=prompt_suggestions
|
| 466 |
)
|
| 467 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 468 |
gender_selector.change(
|
| 469 |
fn=update_prompt_buttons_visibility,
|
| 470 |
inputs=gender_selector,
|
|
|
|
| 465 |
outputs=prompt_suggestions
|
| 466 |
)
|
| 467 |
|
| 468 |
+
def update_buttons_only(gender):
|
| 469 |
+
updates = update_prompt_buttons_visibility(gender)
|
| 470 |
+
# Force popup to remain hidden
|
| 471 |
+
updates[0] = gr.update(visible=False)
|
| 472 |
+
return updates
|
| 473 |
+
|
| 474 |
gender_selector.change(
|
| 475 |
fn=update_prompt_buttons_visibility,
|
| 476 |
inputs=gender_selector,
|