JonathanColetti commited on
Commit
2ee5f0c
·
verified ·
1 Parent(s): 36cdb93

fix Gradio 6 API: theme/css on launch, drop show_download_button

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -268,7 +268,7 @@ NOTES = f"""
268
  RoPE tables end. It stops itself and says so.
269
  """
270
 
271
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="LiveWan") as demo:
272
  with gr.Column(elem_id="col-container"):
273
  gr.Markdown(INTRO)
274
 
@@ -285,8 +285,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="LiveWan") as demo:
285
  seed = gr.Number(value=0, precision=0, label="Seed", scale=0)
286
  run_btn = gr.Button("Stream", variant="primary")
287
 
288
- preview = gr.Image(label="Live preview (faster than real time)",
289
- height=368, show_download_button=False)
290
  stats = gr.Markdown()
291
  video = gr.Video(label="The clip, at 16 fps", autoplay=True)
292
 
@@ -305,4 +304,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="LiveWan") as demo:
305
  run_btn.click(run, inputs=[world, steer_to, steer_at, seconds, seed],
306
  outputs=[preview, stats, video], concurrency_limit=1)
307
 
308
- demo.queue(max_size=12).launch(mcp_server=True)
 
268
  RoPE tables end. It stops itself and says so.
269
  """
270
 
271
+ with gr.Blocks(title="LiveWan") as demo:
272
  with gr.Column(elem_id="col-container"):
273
  gr.Markdown(INTRO)
274
 
 
285
  seed = gr.Number(value=0, precision=0, label="Seed", scale=0)
286
  run_btn = gr.Button("Stream", variant="primary")
287
 
288
+ preview = gr.Image(label="Live preview (faster than real time)", height=368)
 
289
  stats = gr.Markdown()
290
  video = gr.Video(label="The clip, at 16 fps", autoplay=True)
291
 
 
304
  run_btn.click(run, inputs=[world, steer_to, steer_at, seconds, seed],
305
  outputs=[preview, stats, video], concurrency_limit=1)
306
 
307
+ demo.queue(max_size=12).launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)