pablovela5620 Claude Fable 5 commited on
Commit
e0fb844
·
1 Parent(s): 09f33ca

Keep the examples as a thumbnail gallery

Browse files

A second example input turns the gallery into a labeled table, which
reads far worse in the narrow control column than one row of four
tiles. The start_time reset it carried goes: a stale nonzero start on
an example clip fails the probe with a clear message instead.

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

Files changed (1) hide show
  1. fdanyone_app.py +4 -5
fdanyone_app.py CHANGED
@@ -221,12 +221,11 @@ def build_demo() -> gr.Blocks:
221
  value=0.0, label="Start time (seconds)", minimum=0.0
222
  )
223
  seed: gr.Number = gr.Number(value=0, label="Seed", precision=0, minimum=0)
224
- # Each example resets start_time: the clips are trimmed
225
- # to the 121-frame contract with one frame of slack, so
226
- # any later start fails the probe.
227
  gr.Examples(
228
- examples=[[str(clip), 0.0] for clip in sorted(EXAMPLE_DIR.glob("*.mp4"))],
229
- inputs=[video, start_time],
230
  cache_examples=False,
231
  examples_per_page=4,
232
  )
 
221
  value=0.0, label="Start time (seconds)", minimum=0.0
222
  )
223
  seed: gr.Number = gr.Number(value=0, label="Seed", precision=0, minimum=0)
224
+ # A single input keeps the compact thumbnail gallery; a
225
+ # second column would turn it into a labeled table.
 
226
  gr.Examples(
227
+ examples=[[str(clip)] for clip in sorted(EXAMPLE_DIR.glob("*.mp4"))],
228
+ inputs=[video],
229
  cache_examples=False,
230
  examples_per_page=4,
231
  )