Spaces:
Sleeping
Sleeping
Deploy Small Talk: Reachy Mini AI podcast (gradio.Server + three.js + LiveKit)
Browse files- app.py +1 -1
- backend/server.py +4 -1
app.py
CHANGED
|
@@ -28,7 +28,7 @@ attach(app) # /api/* routes — registered before the static mounts below
|
|
| 28 |
# Gradio's own routes, so a simple per-folder static mount is enough.
|
| 29 |
from fastapi.staticfiles import StaticFiles # noqa: E402
|
| 30 |
|
| 31 |
-
for sub in ("assets", "robot-3d", "moves"):
|
| 32 |
d = DIST / sub
|
| 33 |
if d.is_dir():
|
| 34 |
app.mount(f"/{sub}", StaticFiles(directory=str(d)), name=sub)
|
|
|
|
| 28 |
# Gradio's own routes, so a simple per-folder static mount is enough.
|
| 29 |
from fastapi.staticfiles import StaticFiles # noqa: E402
|
| 30 |
|
| 31 |
+
for sub in ("assets", "robot-3d", "moves", "props"):
|
| 32 |
d = DIST / sub
|
| 33 |
if d.is_dir():
|
| 34 |
app.mount(f"/{sub}", StaticFiles(directory=str(d)), name=sub)
|
backend/server.py
CHANGED
|
@@ -6,6 +6,7 @@ their own configured Reachy in (it joins and reacts — live speech needs the
|
|
| 6 |
on-device brain + TTS).
|
| 7 |
"""
|
| 8 |
import asyncio
|
|
|
|
| 9 |
import re
|
| 10 |
import uuid
|
| 11 |
from dataclasses import dataclass
|
|
@@ -254,7 +255,9 @@ def _get_llm():
|
|
| 254 |
global _llm_client
|
| 255 |
if _llm_client is None:
|
| 256 |
from gradio_client import Client
|
| 257 |
-
|
|
|
|
|
|
|
| 258 |
return _llm_client
|
| 259 |
|
| 260 |
|
|
|
|
| 6 |
on-device brain + TTS).
|
| 7 |
"""
|
| 8 |
import asyncio
|
| 9 |
+
import os
|
| 10 |
import re
|
| 11 |
import uuid
|
| 12 |
from dataclasses import dataclass
|
|
|
|
| 255 |
global _llm_client
|
| 256 |
if _llm_client is None:
|
| 257 |
from gradio_client import Client
|
| 258 |
+
# authenticate so the ZeroGPU call uses our (team-org) quota, not the
|
| 259 |
+
# exhausted anonymous pool
|
| 260 |
+
_llm_client = Client(LLM_SPACE, hf_token=os.environ.get("HF_TOKEN") or None)
|
| 261 |
return _llm_client
|
| 262 |
|
| 263 |
|