Commit ·
d3cd6e0
1
Parent(s): bdb2cf1
Fix Generate click going silent after adding the watchdog-arm step
Browse filesLive logs showed zero server-side activity after a Generate click —
not even the CPU-preprocessing print statements that normally fire
first — meaning the request never reached the backend at all.
The newly added watchdog-arming step was the only fn=None (JS-only,
unqueued per blocks.py's `queue = False if fn is None else queue`)
dependency in this app using inputs=None; every other fn=None step
(slot visibility) uses a real inputs=[...] list and is confirmed
working. inputs=None combined with fn=None is an untested combination
and the most likely place for the chain to break before ever reaching
the real generate call. Switched to inputs=[] to match the known-good
pattern.
app.py
CHANGED
|
@@ -3163,7 +3163,7 @@ with gr.Blocks(title="Generate Audio for Video", css=_SLOT_CSS, js=_GLOBAL_JS) a
|
|
| 3163 |
outputs=[taro_btn],
|
| 3164 |
).then(
|
| 3165 |
fn=None,
|
| 3166 |
-
inputs=
|
| 3167 |
outputs=[],
|
| 3168 |
js="() => window._armGenerateWatchdog('taro_btn', 600000)",
|
| 3169 |
).then(
|
|
@@ -3234,7 +3234,7 @@ with gr.Blocks(title="Generate Audio for Video", css=_SLOT_CSS, js=_GLOBAL_JS) a
|
|
| 3234 |
outputs=[mma_btn],
|
| 3235 |
).then(
|
| 3236 |
fn=None,
|
| 3237 |
-
inputs=
|
| 3238 |
outputs=[],
|
| 3239 |
js="() => window._armGenerateWatchdog('mma_btn', 600000)",
|
| 3240 |
).then(
|
|
@@ -3304,7 +3304,7 @@ with gr.Blocks(title="Generate Audio for Video", css=_SLOT_CSS, js=_GLOBAL_JS) a
|
|
| 3304 |
outputs=[hf_btn],
|
| 3305 |
).then(
|
| 3306 |
fn=None,
|
| 3307 |
-
inputs=
|
| 3308 |
outputs=[],
|
| 3309 |
js="() => window._armGenerateWatchdog('hf_btn', 600000)",
|
| 3310 |
).then(
|
|
|
|
| 3163 |
outputs=[taro_btn],
|
| 3164 |
).then(
|
| 3165 |
fn=None,
|
| 3166 |
+
inputs=[],
|
| 3167 |
outputs=[],
|
| 3168 |
js="() => window._armGenerateWatchdog('taro_btn', 600000)",
|
| 3169 |
).then(
|
|
|
|
| 3234 |
outputs=[mma_btn],
|
| 3235 |
).then(
|
| 3236 |
fn=None,
|
| 3237 |
+
inputs=[],
|
| 3238 |
outputs=[],
|
| 3239 |
js="() => window._armGenerateWatchdog('mma_btn', 600000)",
|
| 3240 |
).then(
|
|
|
|
| 3304 |
outputs=[hf_btn],
|
| 3305 |
).then(
|
| 3306 |
fn=None,
|
| 3307 |
+
inputs=[],
|
| 3308 |
outputs=[],
|
| 3309 |
js="() => window._armGenerateWatchdog('hf_btn', 600000)",
|
| 3310 |
).then(
|