Spaces:
Build error
Build error
| import os | |
| import sys | |
| from pathlib import Path | |
| from types import SimpleNamespace | |
| # Ensure local src/ package is importable in Spaces without editable install. | |
| ROOT = Path(__file__).resolve().parent | |
| SRC = ROOT / "src" | |
| if str(SRC) not in sys.path: | |
| sys.path.insert(0, str(SRC)) | |
| from reachy_mini_chat.main import run | |
| def main() -> None: | |
| """Space-specific thin entrypoint.""" | |
| os.environ.setdefault("REACHY_MINI_UI_ONLY", "1") | |
| os.environ.setdefault("GRADIO_SERVER_NAME", "0.0.0.0") | |
| args = SimpleNamespace( | |
| head_tracker=None, | |
| no_camera=True, | |
| local_vision=False, | |
| gradio=True, | |
| server_port=None, | |
| debug=False, | |
| robot_name=None, | |
| ) | |
| run(args) | |
| if __name__ == "__main__": | |
| main() | |