Spaces:
Running
Running
Download scripts/run_bootstrap.py from BravoRobots/lexia: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/BravoRobots/lexia/resolve/main/scripts/run_bootstrap.py
- Command line
-
hf download hf://spaces/BravoRobots/lexia/scripts/run_bootstrap.py
-
curl -L -o run_bootstrap.py https://huggingface.co/spaces/BravoRobots/lexia/resolve/main/scripts/run_bootstrap.py
482 Bytes
| """Ejecuta el bootstrap local y deja su resultado visible para soporte.""" | |
| from __future__ import annotations | |
| import json | |
| from lexia.setup.service import get_service | |
| def main() -> None: | |
| service = get_service() | |
| print(json.dumps(service.start(), ensure_ascii=False), flush=True) | |
| worker = service._worker | |
| if worker is not None: | |
| worker.join() | |
| print(json.dumps(service.progress(), ensure_ascii=False), flush=True) | |
| if __name__ == "__main__": | |
| main() | |