Reachy-Mini_Best_Spaces / generate-dashboard-list.py
PierreRouanet's picture
Update generate-dashboard-list.py
4a8b33b
raw
history blame contribute delete
784 Bytes
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())