wwieerrz Claude commited on
Commit
279dd74
·
1 Parent(s): fb0803d

Remove 'info' parameter from Slider and Dropdown

Browse files

FIX Gradio 4.44.0 bug:
- TypeError: argument of type 'bool' is not iterable
- Caused by 'info' parameter in Slider and Dropdown components
- Remove info parameter to fix the error

CHANGES:
- colormap_style Dropdown: Remove info parameter
- parallax_strength Slider: Remove info parameter

Model loads successfully! Just need to fix UI rendering.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -220,8 +220,7 @@ with gr.Blocks(
220
  colormap_style = gr.Dropdown(
221
  choices=["Inferno", "Viridis", "Plasma", "Turbo", "Magma", "Hot", "Ocean", "Rainbow"],
222
  value="Inferno",
223
- label="Colormap Style",
224
- info="Choose your depth visualization color scheme"
225
  )
226
 
227
  estimate_btn = gr.Button("🚀 Generate Depth Map", variant="primary", size="lg")
@@ -279,8 +278,7 @@ with gr.Blocks(
279
  parallax_depth = gr.Image(label="Depth Map (optional)", type="pil")
280
  parallax_strength = gr.Slider(
281
  minimum=0, maximum=2, value=0.5, step=0.1,
282
- label="Parallax Strength",
283
- info="Control the 3D displacement effect intensity"
284
  )
285
  parallax_btn = gr.Button("✨ Generate 3D Effect", variant="primary")
286
 
 
220
  colormap_style = gr.Dropdown(
221
  choices=["Inferno", "Viridis", "Plasma", "Turbo", "Magma", "Hot", "Ocean", "Rainbow"],
222
  value="Inferno",
223
+ label="Colormap Style"
 
224
  )
225
 
226
  estimate_btn = gr.Button("🚀 Generate Depth Map", variant="primary", size="lg")
 
278
  parallax_depth = gr.Image(label="Depth Map (optional)", type="pil")
279
  parallax_strength = gr.Slider(
280
  minimum=0, maximum=2, value=0.5, step=0.1,
281
+ label="Parallax Strength"
 
282
  )
283
  parallax_btn = gr.Button("✨ Generate 3D Effect", variant="primary")
284