Commit
Β·
a30f5d4
1
Parent(s):
3364df6
Add dashboard-curated-list.
Browse files- dashboard-app-list.json +1 -0
- generate-dashboard-list.py +31 -0
dashboard-app-list.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"dashboard_selected_apps":[{"name":"red_light_green_light","source_kind":"hf_space","description":"Play Red light Green light with Reachy Mini!","url":"https://huggingface.co/spaces/pollen-robotics/red_light_green_light","extra":{"_id":"6867cca9f733e58b10f0ea03","id":"pollen-robotics/red_light_green_light","sdk":"static","likes":3,"tags":["static","reachy_mini","region:us"],"private":false,"author":"pollen-robotics","sha":"337cea55ec407de872cf2c2a2c2729836e161543","lastModified":"2025-07-15T09:43:24.000Z","cardData":{"title":"Red Light Green Light","emoji":"π¦","colorFrom":"green","colorTo":"yellow","sdk":"static","pinned":false,"tags":["reachy_mini"],"short_description":"Play Red light Green light with Reachy Mini!"},"subdomain":"pollen-robotics-red-light-green-light","gated":false,"disabled":false,"host":"https://pollen-robotics-red-light-green-light.static.hf.space","runtime":{"stage":"RUNNING","hardware":{"current":null,"requested":null},"storage":{"requested":null,"current":null},"replicas":{"requested":1,"current":1}},"siblings":[{"rfilename":".gitattributes"},{"rfilename":".gitignore"},{"rfilename":"MANIFEST.in"},{"rfilename":"README.md"},{"rfilename":"index.html"},{"rfilename":"pyproject.toml"},{"rfilename":"red_light_green_light/__init__.py"},{"rfilename":"red_light_green_light/main.py"},{"rfilename":"red_light_green_light/people_detector.py"},{"rfilename":"red_light_green_light/pose_landmarker_full.task"},{"rfilename":"style.css"}],"createdAt":"2025-07-04T12:44:25.000Z","usedStorage":9398198}},{"name":"dance_dance_mini","source_kind":"hf_space","description":"Let's make Reachy Mini Dance!","url":"https://huggingface.co/spaces/pollen-robotics/dance_dance_mini","extra":{"_id":"686d0a6ffb7f04c932a7bd97","id":"pollen-robotics/dance_dance_mini","sdk":"static","likes":7,"tags":["static","reachy_mini","region:us"],"private":false,"author":"pollen-robotics","sha":"cfef1cb5cd256f05bca64a041c6ee2933565392d","lastModified":"2025-07-08T12:22:24.000Z","cardData":{"title":"Dance Dance Mini","emoji":"π","colorFrom":"pink","colorTo":"red","sdk":"static","pinned":false,"license":"mit","short_description":"Let's make Reachy Mini Dance!","tags":["reachy_mini"]},"subdomain":"pollen-robotics-dance-dance-mini","gated":false,"disabled":false,"host":"https://pollen-robotics-dance-dance-mini.static.hf.space","runtime":{"stage":"RUNNING","hardware":{"current":null,"requested":null},"storage":{"requested":null,"current":null},"replicas":{"requested":1,"current":1}},"siblings":[{"rfilename":".gitattributes"},{"rfilename":".gitignore"},{"rfilename":"README.md"},{"rfilename":"dance_dance_mini/__init__.py"},{"rfilename":"dance_dance_mini/main.py"},{"rfilename":"index.html"},{"rfilename":"pyproject.toml"},{"rfilename":"style.css"}],"createdAt":"2025-07-08T12:09:19.000Z","usedStorage":0}}]}
|
generate-dashboard-list.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import asyncio
|
| 2 |
+
|
| 3 |
+
from pydantic import BaseModel
|
| 4 |
+
from reachy_mini.apps import AppInfo
|
| 5 |
+
from reachy_mini.apps.sources.hf_space import app_info_from_space_url
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class DashboardAppList(BaseModel):
|
| 9 |
+
dashboard_selected_apps: list[AppInfo]
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
if __name__ == "__main__":
|
| 13 |
+
|
| 14 |
+
async def main():
|
| 15 |
+
apps = list(
|
| 16 |
+
await asyncio.gather(
|
| 17 |
+
app_info_from_space_url(
|
| 18 |
+
"https://huggingface.co/spaces/pollen-robotics/red_light_green_light"
|
| 19 |
+
),
|
| 20 |
+
app_info_from_space_url(
|
| 21 |
+
"https://huggingface.co/spaces/pollen-robotics/dance_dance_mini"
|
| 22 |
+
),
|
| 23 |
+
)
|
| 24 |
+
)
|
| 25 |
+
dashboard_list = DashboardAppList(dashboard_selected_apps=apps)
|
| 26 |
+
with open("dashboard-app-list.json", "w") as f:
|
| 27 |
+
f.write(dashboard_list.model_dump_json())
|
| 28 |
+
|
| 29 |
+
print("Dashboard app list generated.")
|
| 30 |
+
|
| 31 |
+
asyncio.run(main())
|