File size: 784 Bytes
a30f5d4 4a8b33b a30f5d4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import asyncio
from reachy_mini.apps.sources.hf_space import DashboardAppList, app_info_from_space_url
if __name__ == "__main__":
async def main():
apps = list(
await asyncio.gather(
app_info_from_space_url(
"https://huggingface.co/spaces/pollen-robotics/red_light_green_light"
),
app_info_from_space_url(
"https://huggingface.co/spaces/pollen-robotics/dance_dance_mini"
),
)
)
dashboard_list = DashboardAppList(dashboard_selected_apps=apps)
with open("dashboard-app-list.json", "w") as f:
f.write(dashboard_list.model_dump_json())
print("Dashboard app list generated.")
asyncio.run(main())
|