Fix deploy crash: gr.Image doesn't accept an info kwarg in Gradio 6.0.1 (#42)
Browse filesTypeError: Image.__init__() got an unexpected keyword argument 'info'
on Space startup. Unlike gr.Slider/gr.Dropdown, gr.Image has no info
param in this Gradio version — fold the hint into the label instead.
Claude-Session: https://claude.ai/code/session_01929npp9MCfTtGF4tyfEE5n
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -436,9 +436,8 @@ with gr.Blocks() as demo:
|
|
| 436 |
with gr.Accordion("Advanced Settings", open=False):
|
| 437 |
last_image_component = gr.Image(
|
| 438 |
type="pil",
|
| 439 |
-
label="Last Image (Optional)",
|
| 440 |
sources=["upload", "clipboard"],
|
| 441 |
-
info="Optional end frame — the video will animate from the input image to this one.",
|
| 442 |
)
|
| 443 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", value=DEFAULT_NEGATIVE_PROMPT, lines=3)
|
| 444 |
steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=6, label="Inference Steps")
|
|
|
|
| 436 |
with gr.Accordion("Advanced Settings", open=False):
|
| 437 |
last_image_component = gr.Image(
|
| 438 |
type="pil",
|
| 439 |
+
label="Last Image (Optional) — end frame to animate towards",
|
| 440 |
sources=["upload", "clipboard"],
|
|
|
|
| 441 |
)
|
| 442 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", value=DEFAULT_NEGATIVE_PROMPT, lines=3)
|
| 443 |
steps_slider = gr.Slider(minimum=1, maximum=30, step=1, value=6, label="Inference Steps")
|