Spaces:
Runtime error
Runtime error
Update display when the page loads
Browse files
app.py
CHANGED
|
@@ -1184,7 +1184,14 @@ with block:
|
|
| 1184 |
inputs=[input_image_debug, input_video_debug, prompt_debug, total_second_length_debug],
|
| 1185 |
outputs=[]
|
| 1186 |
)
|
| 1187 |
-
|
| 1188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1189 |
|
| 1190 |
block.launch(mcp_server=True, ssr_mode=False)
|
|
|
|
| 1184 |
inputs=[input_image_debug, input_video_debug, prompt_debug, total_second_length_debug],
|
| 1185 |
outputs=[]
|
| 1186 |
)
|
| 1187 |
+
|
| 1188 |
+
# Update display when the page loads
|
| 1189 |
+
block.load(
|
| 1190 |
+
fn=handle_generation_mode_change, inputs = [
|
| 1191 |
+
generation_mode
|
| 1192 |
+
], outputs = [
|
| 1193 |
+
text_to_video_hint, input_image, input_video, start_button, start_button_video, no_resize, batch, resolution, num_clean_frames, vae_batch
|
| 1194 |
+
]
|
| 1195 |
+
)
|
| 1196 |
|
| 1197 |
block.launch(mcp_server=True, ssr_mode=False)
|