ericvh commited on
Commit
ffaa634
路
verified 路
1 Parent(s): 8bce081

Update HF Space landing page documentation links

Browse files
build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/reachy_mini_device_connect_space/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """Hugging Face Spaces thin package for ``reachy_mini_driver``."""
build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/reachy_mini_device_connect_space/main.py ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Space entry: assistant check requires ``class ...(ReachyMiniApp)``."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import threading
6
+
7
+ from reachy_mini import ReachyMini, ReachyMiniApp
8
+
9
+ from reachy_mini_driver.reachy_app import (
10
+ SETTINGS_HOST,
11
+ SETTINGS_PORT,
12
+ register_device_connect_settings_routes,
13
+ run_device_connect_app,
14
+ )
15
+
16
+
17
+ class ReachyMiniDeviceConnectSpace(ReachyMiniApp):
18
+ """HF Space entry; settings UI is mounted from ``reachy_mini_driver/static``."""
19
+
20
+ custom_app_url: str | None = f"http://{SETTINGS_HOST}:{SETTINGS_PORT}"
21
+ request_media_backend: str | None = "default"
22
+
23
+ def __init__(self, running_on_wireless: bool = False) -> None:
24
+ super().__init__(running_on_wireless)
25
+ register_device_connect_settings_routes(self.settings_app)
26
+
27
+ def run(self, reachy_mini: ReachyMini, stop_event: threading.Event) -> None:
28
+ run_device_connect_app(reachy_mini, stop_event)
29
+
30
+
31
+ if __name__ == "__main__":
32
+ from reachy_mini_driver.logging_setup import configure_driver_logging
33
+
34
+ configure_driver_logging()
35
+ app = ReachyMiniDeviceConnectSpace()
36
+ try:
37
+ app.wrapped_run()
38
+ except KeyboardInterrupt:
39
+ app.stop()
index.html CHANGED
@@ -16,7 +16,9 @@
16
  </p>
17
  <p>
18
  Documentation:
19
- <a href="https://github.com/ericvh/reachy-mini-driver">Github driver repository</a>
 
 
20
  </p>
21
  </body>
22
  </html>
 
16
  </p>
17
  <p>
18
  Documentation:
19
+ <a href="https://github.com/ericvh/reachy-mini-driver" target="_blank" rel="noopener noreferrer">GitHub driver repository</a>
20
+ 路
21
+ <a href="https://deviceconnect.dev" target="_blank" rel="noopener noreferrer">Device Connect documentation</a>
22
  </p>
23
  </body>
24
  </html>