dennny123 commited on
Commit
52054de
·
verified ·
1 Parent(s): 1d299ac

Rename Space and refresh branding

Browse files
Files changed (2) hide show
  1. README.md +3 -9
  2. app.py +6 -6
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: LingBot-Map ZeroGPU Demo
3
  colorFrom: blue
4
  colorTo: green
5
  sdk: gradio
@@ -14,9 +14,9 @@ preload_from_hub:
14
  - robbyant/lingbot-map lingbot-map.pt
15
  ---
16
 
17
- # LingBot-Map ZeroGPU Demo
18
 
19
- Gradio Space wrapper around `Robbyant/lingbot-map` tuned for Hugging Face ZeroGPU:
20
 
21
  - uses the upstream `lingbot_map` package directly
22
  - downloads checkpoints from `robbyant/lingbot-map`
@@ -24,12 +24,6 @@ Gradio Space wrapper around `Robbyant/lingbot-map` tuned for Hugging Face ZeroGP
24
  - caps inputs to short clips so the app fits a shared ZeroGPU workflow
25
  - exports a browser-friendly `.glb` scene plus a zipped artifact bundle
26
 
27
- ## Recommended Space Settings
28
-
29
- 1. Create a new **Gradio** Space.
30
- 2. In **Settings -> Hardware**, switch the Space to **ZeroGPU**.
31
- 3. Keep the repo public or protected as needed.
32
-
33
  ## Current Limits
34
 
35
  - short demos only
 
1
  ---
2
+ title: LingBot 3D
3
  colorFrom: blue
4
  colorTo: green
5
  sdk: gradio
 
14
  - robbyant/lingbot-map lingbot-map.pt
15
  ---
16
 
17
+ # LingBot 3D
18
 
19
+ Turn a short image sequence or video into a 3D scene with LingBot-Map.
20
 
21
  - uses the upstream `lingbot_map` package directly
22
  - downloads checkpoints from `robbyant/lingbot-map`
 
24
  - caps inputs to short clips so the app fits a shared ZeroGPU workflow
25
  - exports a browser-friendly `.glb` scene plus a zipped artifact bundle
26
 
 
 
 
 
 
 
27
  ## Current Limits
28
 
29
  - short demos only
app.py CHANGED
@@ -496,8 +496,8 @@ def reconstruct_scene(
496
  def _build_startup_markdown() -> str:
497
  if not STARTUP_NOTES:
498
  return (
499
- "Short-form LingBot-Map Space for Hugging Face ZeroGPU. "
500
- "It uses the upstream checkpoint files, SDPA inference, and exports a GLB scene plus a zipped results bundle."
501
  )
502
  return "\n".join([f"- {note}" for note in STARTUP_NOTES])
503
 
@@ -527,15 +527,15 @@ CSS = """
527
  _eager_load_default_model()
528
 
529
 
530
- with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="green", secondary_hue="amber"), title="LingBot-Map ZeroGPU Demo") as demo:
531
  gr.Markdown("<div class='shell'>")
532
  with gr.Row():
533
  gr.Image(value=str(ROOT / "assets" / "teaser.png"), show_label=False, interactive=False, min_width=320)
534
  gr.Markdown(
535
  """
536
  <div class="headline">
537
- <h1>LingBot-Map ZeroGPU Demo</h1>
538
- <p>Upload ordered images or a short video. The Space samples up to 24 frames, runs the SDPA fallback path, and exports a GLB scene plus a zipped artifact bundle.</p>
539
  </div>
540
  """
541
  )
@@ -566,7 +566,7 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="green", secondary_hue=
566
  value=DEFAULT_CONF_PERCENTILE,
567
  label="GLB confidence percentile",
568
  )
569
- run_button = gr.Button("Reconstruct Scene", variant="primary")
570
 
571
  with gr.Column(scale=1):
572
  model_preview = gr.Model3D(label="3D preview", clear_color=[0.97, 0.94, 0.88, 1.0])
 
496
  def _build_startup_markdown() -> str:
497
  if not STARTUP_NOTES:
498
  return (
499
+ "Build a 3D scene from a short image sequence or video. "
500
+ "This app uses the upstream LingBot-Map checkpoint and exports a navigable GLB scene plus a downloadable results bundle."
501
  )
502
  return "\n".join([f"- {note}" for note in STARTUP_NOTES])
503
 
 
527
  _eager_load_default_model()
528
 
529
 
530
+ with gr.Blocks(css=CSS, theme=gr.themes.Soft(primary_hue="green", secondary_hue="amber"), title="LingBot 3D") as demo:
531
  gr.Markdown("<div class='shell'>")
532
  with gr.Row():
533
  gr.Image(value=str(ROOT / "assets" / "teaser.png"), show_label=False, interactive=False, min_width=320)
534
  gr.Markdown(
535
  """
536
  <div class="headline">
537
+ <h1>LingBot 3D</h1>
538
+ <p>Upload ordered images or a short video, sample a compact clip, and export a 3D scene you can inspect or download.</p>
539
  </div>
540
  """
541
  )
 
566
  value=DEFAULT_CONF_PERCENTILE,
567
  label="GLB confidence percentile",
568
  )
569
+ run_button = gr.Button("Build 3D Scene", variant="primary")
570
 
571
  with gr.Column(scale=1):
572
  model_preview = gr.Model3D(label="3D preview", clear_color=[0.97, 0.94, 0.88, 1.0])