Download bt-source/panel/runserver.py from SZFSPC/apple: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/SZFSPC/apple/resolve/main/bt-source/panel/runserver.py
- Command line
-
hf download hf://spaces/SZFSPC/apple/bt-source/panel/runserver.py
-
curl -L -o runserver.py https://huggingface.co/spaces/SZFSPC/apple/resolve/main/bt-source/panel/runserver.py
639 Bytes
| #coding: utf-8 | |
| # +------------------------------------------------------------------- | |
| # | 宝塔Linux面板 | |
| # +------------------------------------------------------------------- | |
| # | Copyright (c) 2015-2099 宝塔软件(http://bt.cn) All rights reserved. | |
| # +------------------------------------------------------------------- | |
| # | Author: 黄文良 <287962566@qq.com> | |
| # +------------------------------------------------------------------- | |
| from os import environ | |
| from BTPanel import app,sys | |
| if __name__ == '__main__': | |
| f = open('data/port.pl') | |
| PORT = int(f.read()) | |
| HOST = '0.0.0.0' | |
| f.close() | |
| app.run(host=HOST,port=PORT) | |