Spaces:
Sleeping
Sleeping
Download app_django/run.py from bitterapricot/node: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/bitterapricot/node/resolve/main/app_django/run.py
- Command line
-
hf download hf://spaces/bitterapricot/node/app_django/run.py
-
curl -L -o run.py https://huggingface.co/spaces/bitterapricot/node/resolve/main/app_django/run.py
433 Bytes
| from waitress import serve | |
| from lzcadmgr_api.wsgi import application | |
| # f:\LcpSdk\ThirdParty\Python\v3.12.0\amd64\scripts\waitress-serve --host=0.0.0.0 --port=8000 --threads=4 lzcadmgr_api.wsgi:application | |
| if __name__ == '__main__': | |
| # 生产环境配置 | |
| serve( | |
| application, | |
| host='0.0.0.0', | |
| port=8000, | |
| threads=4 | |
| #url_scheme='https' # 如果使用HTTPS反向代理需要设置 | |
| ) |