Spaces:
Running
on
Zero
Running
on
Zero
Update ui_manager.py
Browse files- ui_manager.py +5 -3
ui_manager.py
CHANGED
|
@@ -942,7 +942,8 @@ class UIManager:
|
|
| 942 |
# Right column - Settings and Output
|
| 943 |
with gr.Column(scale=1):
|
| 944 |
# Model Selection (hidden for Pure Inpainting templates)
|
| 945 |
-
|
|
|
|
| 946 |
with gr.Accordion("Model Selection", open=True):
|
| 947 |
model_choice = gr.Dropdown(
|
| 948 |
choices=[
|
|
@@ -957,7 +958,8 @@ class UIManager:
|
|
| 957 |
)
|
| 958 |
|
| 959 |
# ControlNet Settings (hidden for Pure Inpainting templates)
|
| 960 |
-
|
|
|
|
| 961 |
with gr.Accordion("ControlNet Settings", open=True):
|
| 962 |
conditioning_type = gr.Radio(
|
| 963 |
choices=["canny", "depth"],
|
|
@@ -1162,4 +1164,4 @@ class UIManager:
|
|
| 1162 |
tips = self.inpainting_template_manager.get_usage_tips(template_key)
|
| 1163 |
if tips:
|
| 1164 |
return "**Tips:**\n" + "\n".join(f"- {tip}" for tip in tips)
|
| 1165 |
-
return ""
|
|
|
|
| 942 |
# Right column - Settings and Output
|
| 943 |
with gr.Column(scale=1):
|
| 944 |
# Model Selection (hidden for Pure Inpainting templates)
|
| 945 |
+
# Using gr.Column for better Gradio 4.x compatibility
|
| 946 |
+
with gr.Column(visible=True) as model_selection_group:
|
| 947 |
with gr.Accordion("Model Selection", open=True):
|
| 948 |
model_choice = gr.Dropdown(
|
| 949 |
choices=[
|
|
|
|
| 958 |
)
|
| 959 |
|
| 960 |
# ControlNet Settings (hidden for Pure Inpainting templates)
|
| 961 |
+
# Using gr.Column for better Gradio 4.x compatibility
|
| 962 |
+
with gr.Column(visible=True) as controlnet_settings_group:
|
| 963 |
with gr.Accordion("ControlNet Settings", open=True):
|
| 964 |
conditioning_type = gr.Radio(
|
| 965 |
choices=["canny", "depth"],
|
|
|
|
| 1164 |
tips = self.inpainting_template_manager.get_usage_tips(template_key)
|
| 1165 |
if tips:
|
| 1166 |
return "**Tips:**\n" + "\n".join(f"- {tip}" for tip in tips)
|
| 1167 |
+
return ""
|