Spaces:
Running on Zero
Running on Zero
live preview at the same size as the clip, above it
Browse files
app.py
CHANGED
|
@@ -379,11 +379,12 @@ with gr.Blocks(title="LiveWan") as demo:
|
|
| 379 |
run_btn = gr.Button("Stream", variant="primary", size="lg")
|
| 380 |
|
| 381 |
with gr.Column(scale=3):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
video = gr.Video(label="The clip, at 16 fps", autoplay=True,
|
| 383 |
height=368)
|
| 384 |
-
preview = gr.Image(label="Live preview, as each block lands",
|
| 385 |
-
height=200)
|
| 386 |
-
stats = gr.Markdown()
|
| 387 |
|
| 388 |
run_btn.click(run, inputs=[world, steer_to, steer_text, steer_at, seconds, seed],
|
| 389 |
outputs=[preview, stats, video], concurrency_limit=1)
|
|
|
|
| 379 |
run_btn = gr.Button("Stream", variant="primary", size="lg")
|
| 380 |
|
| 381 |
with gr.Column(scale=3):
|
| 382 |
+
# Both at the stream's native 640x368: the live view is the point of
|
| 383 |
+
# the demo, so it is not the small one.
|
| 384 |
+
preview = gr.Image(label="Live, as each block lands", height=368)
|
| 385 |
+
stats = gr.Markdown()
|
| 386 |
video = gr.Video(label="The clip, at 16 fps", autoplay=True,
|
| 387 |
height=368)
|
|
|
|
|
|
|
|
|
|
| 388 |
|
| 389 |
run_btn.click(run, inputs=[world, steer_to, steer_text, steer_at, seconds, seed],
|
| 390 |
outputs=[preview, stats, video], concurrency_limit=1)
|