Spaces:
Sleeping
Sleeping
Download apps/api/launcher.py from quantumsquatan/Adala-ai: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/quantumsquatan/Adala-ai/resolve/main/apps/api/launcher.py
- Command line
-
hf download hf://spaces/quantumsquatan/Adala-ai/apps/api/launcher.py
-
curl -L -o launcher.py https://huggingface.co/spaces/quantumsquatan/Adala-ai/resolve/main/apps/api/launcher.py
328 Bytes
| from __future__ import annotations | |
| import os | |
| import uvicorn | |
| from app.main import app | |
| def main() -> None: | |
| host = os.getenv("ADALA_API_HOST", "127.0.0.1") | |
| port = int(os.getenv("ADALA_API_PORT", "8001")) | |
| uvicorn.run(app, host=host, port=port, reload=False) | |
| if __name__ == "__main__": | |
| main() | |