Spaces:
Running on Zero
Running on Zero
Commit ·
e0fb844
1
Parent(s): 09f33ca
Keep the examples as a thumbnail gallery
Browse filesA 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>
- 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 |
-
#
|
| 225 |
-
#
|
| 226 |
-
# any later start fails the probe.
|
| 227 |
gr.Examples(
|
| 228 |
-
examples=[[str(clip)
|
| 229 |
-
inputs=[video
|
| 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 |
)
|