Spaces:
Runtime error
Runtime error
Unregister admin probe + extract endpoints (work done; SOMA body model shipped to webapp)
Browse files
server.py
CHANGED
|
@@ -205,10 +205,11 @@ def kimodo_motion(
|
|
| 205 |
return {"status": "error", "error": f"{type(e).__name__}: {e}"}
|
| 206 |
|
| 207 |
|
| 208 |
-
def
|
| 209 |
-
"""
|
| 210 |
-
|
| 211 |
-
|
|
|
|
| 212 |
"""
|
| 213 |
import base64
|
| 214 |
import importlib
|
|
@@ -285,8 +286,11 @@ def extract_soma_skin(progress: gr.Progress = gr.Progress()) -> dict: # noqa: B
|
|
| 285 |
return {"status": "error", "error": f"{type(e).__name__}: {e}"}
|
| 286 |
|
| 287 |
|
| 288 |
-
def
|
| 289 |
-
"""
|
|
|
|
|
|
|
|
|
|
| 290 |
submodules looking for any body-model assets (v_template / faces / lbs_weights /
|
| 291 |
J_regressor) so the webapp can ship a smooth SkinnedMesh instead of a
|
| 292 |
procedural capsule humanoid.
|
|
@@ -441,13 +445,6 @@ with gr.Blocks(title="Genga Kimodo") as demo:
|
|
| 441 |
api_name="kimodo_motion",
|
| 442 |
)
|
| 443 |
|
| 444 |
-
probe_btn = gr.Button("Probe SOMA body (admin)")
|
| 445 |
-
probe_out = gr.JSON(label="probe result")
|
| 446 |
-
probe_btn.click(fn=probe_soma_body, inputs=[], outputs=probe_out, api_name="probe_soma_body")
|
| 447 |
-
|
| 448 |
-
extract_btn = gr.Button("Extract SOMA skin (admin)")
|
| 449 |
-
extract_out = gr.JSON(label="extraction result")
|
| 450 |
-
extract_btn.click(fn=extract_soma_skin, inputs=[], outputs=extract_out, api_name="extract_soma_skin")
|
| 451 |
|
| 452 |
|
| 453 |
if __name__ == "__main__":
|
|
|
|
| 205 |
return {"status": "error", "error": f"{type(e).__name__}: {e}"}
|
| 206 |
|
| 207 |
|
| 208 |
+
def _historical_extract_soma_skin(progress: gr.Progress = gr.Progress()) -> dict: # noqa: B008
|
| 209 |
+
"""One-shot dump of kimodo's somaskel77/skin_standard.npz to base64 so the
|
| 210 |
+
webapp can ship a real SkinnedMesh. Already run; binaries live at
|
| 211 |
+
genga-webapp/public/assets/soma/. Kept as build-history reference, NOT
|
| 212 |
+
registered as a Gradio endpoint.
|
| 213 |
"""
|
| 214 |
import base64
|
| 215 |
import importlib
|
|
|
|
| 286 |
return {"status": "error", "error": f"{type(e).__name__}: {e}"}
|
| 287 |
|
| 288 |
|
| 289 |
+
def _historical_probe_soma_body(progress: gr.Progress = gr.Progress()) -> dict: # noqa: B008
|
| 290 |
+
"""One-shot kimodo introspection that found skin_standard.npz. Kept as
|
| 291 |
+
build-history reference, NOT registered as a Gradio endpoint.
|
| 292 |
+
|
| 293 |
+
Aggressive probe — walks the kimodo package's filesystem and importable
|
| 294 |
submodules looking for any body-model assets (v_template / faces / lbs_weights /
|
| 295 |
J_regressor) so the webapp can ship a smooth SkinnedMesh instead of a
|
| 296 |
procedural capsule humanoid.
|
|
|
|
| 445 |
api_name="kimodo_motion",
|
| 446 |
)
|
| 447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 448 |
|
| 449 |
|
| 450 |
if __name__ == "__main__":
|