Spaces:
Sleeping
Sleeping
Download run.py from kumudraj01/api_diff: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/kumudraj01/api_diff/resolve/main/run.py
- Command line
-
hf download hf://spaces/kumudraj01/api_diff/run.py
-
curl -L -o run.py https://huggingface.co/spaces/kumudraj01/api_diff/resolve/main/run.py
621 Bytes
| """ | |
| API Comparator Service Runner | |
| This module is the entry point for the API Comparator service. It configures and starts | |
| the FastAPI application using uvicorn server with specified host and port settings. | |
| """ | |
| import uvicorn | |
| from utils.logger import structlog | |
| log = structlog.get_logger() | |
| # Constants for server configuration | |
| HOST = "0.0.0.0" | |
| PORT = 7860 | |
| if __name__ == "__main__": | |
| log.info("Starting API Comparator service, Host:%s, Port:%d", HOST, PORT) | |
| uvicorn.run( | |
| "main:app", | |
| host=HOST, | |
| port=PORT, | |
| reload=True, | |
| log_level="warning", | |
| access_log=False | |
| ) | |