Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -675,12 +675,13 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 675 |
)
|
| 676 |
|
| 677 |
def update_controls(bg_prompt):
|
| 678 |
-
"""배경 프롬프트 입력 여부에 따라 컨트롤 표시 업데이트"""
|
| 679 |
is_visible = bool(bg_prompt)
|
| 680 |
return [
|
| 681 |
-
gr.update(visible=is_visible), # aspect_ratio
|
| 682 |
gr.update(visible=is_visible), # object_controls
|
| 683 |
]
|
|
|
|
|
|
|
| 684 |
|
| 685 |
bg_prompt.change(
|
| 686 |
fn=update_controls,
|
|
|
|
| 675 |
)
|
| 676 |
|
| 677 |
def update_controls(bg_prompt):
|
|
|
|
| 678 |
is_visible = bool(bg_prompt)
|
| 679 |
return [
|
| 680 |
+
gr.update(visible=is_visible, interactive=is_visible), # aspect_ratio
|
| 681 |
gr.update(visible=is_visible), # object_controls
|
| 682 |
]
|
| 683 |
+
|
| 684 |
+
|
| 685 |
|
| 686 |
bg_prompt.change(
|
| 687 |
fn=update_controls,
|