Spaces:
Running on Zero
Running on Zero
Reword Continue help; remove temp test endpoint
Browse files
app.py
CHANGED
|
@@ -275,16 +275,6 @@ def generate_motion(prompt: str, duration: float = 5.0, diffusion_steps: int = N
|
|
| 275 |
return payload_json, seed
|
| 276 |
|
| 277 |
|
| 278 |
-
@spaces.GPU(duration=180)
|
| 279 |
-
def _seq_selftest(prompt_a: str = "A person walks forward.",
|
| 280 |
-
prompt_b: str = "A person waves with the right hand.") -> str:
|
| 281 |
-
"""TEMP: exercise fresh->continue in one call so the seam can be checked via API."""
|
| 282 |
-
j1, _, st = _core_generate(prompt_a, 4.0, NUM_BASE_STEPS, 2.0, 0, True, None)
|
| 283 |
-
j2, _, _ = _core_generate(prompt_b, 4.0, NUM_BASE_STEPS, 2.0, 0, True, st)
|
| 284 |
-
n1 = json.loads(j1)["num_frames"]
|
| 285 |
-
return json.dumps({"n1": n1, "continued": j2})
|
| 286 |
-
|
| 287 |
-
|
| 288 |
# -----------------------------------------------------------------------------
|
| 289 |
# Front-end: a self-contained Three.js skeleton playground, delivered as a
|
| 290 |
# Gradio-native custom HTML component (Gradio 6 `gr.HTML` templates + js_on_load).
|
|
@@ -690,7 +680,8 @@ with gr.Blocks() as demo:
|
|
| 690 |
<small>Model: **ARDY-Core-RP-20FPS-Horizon40** · 27-joint skeleton · 20 fps.
|
| 691 |
Text encoder: LLM2Vec-Llama-3-8B. Post-processing (foot-skate cleanup) is disabled in this demo.
|
| 692 |
Motion is generated autoregressively; longer clips take longer.
|
| 693 |
-
**Generate** starts a new clip; **Continue ▸**
|
|
|
|
| 694 |
"""
|
| 695 |
)
|
| 696 |
|
|
@@ -705,7 +696,6 @@ with gr.Blocks() as demo:
|
|
| 705 |
|
| 706 |
# Clean single-shot endpoint for the HTTP API / MCP tool (no session state).
|
| 707 |
gr.api(generate_motion, api_name="generate")
|
| 708 |
-
gr.api(_seq_selftest, api_name="_seqtest") # TEMP: validate continue seam
|
| 709 |
|
| 710 |
demo.queue()
|
| 711 |
|
|
|
|
| 275 |
return payload_json, seed
|
| 276 |
|
| 277 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
# -----------------------------------------------------------------------------
|
| 279 |
# Front-end: a self-contained Three.js skeleton playground, delivered as a
|
| 280 |
# Gradio-native custom HTML component (Gradio 6 `gr.HTML` templates + js_on_load).
|
|
|
|
| 680 |
<small>Model: **ARDY-Core-RP-20FPS-Horizon40** · 27-joint skeleton · 20 fps.
|
| 681 |
Text encoder: LLM2Vec-Llama-3-8B. Post-processing (foot-skate cleanup) is disabled in this demo.
|
| 682 |
Motion is generated autoregressively; longer clips take longer.
|
| 683 |
+
**Generate** starts a new clip; **Continue ▸** keeps the same character going,
|
| 684 |
+
transitioning it into the new prompt (like the reference demo's prompt timeline).</small>
|
| 685 |
"""
|
| 686 |
)
|
| 687 |
|
|
|
|
| 696 |
|
| 697 |
# Clean single-shot endpoint for the HTTP API / MCP tool (no session state).
|
| 698 |
gr.api(generate_motion, api_name="generate")
|
|
|
|
| 699 |
|
| 700 |
demo.queue()
|
| 701 |
|