Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- __pycache__/keepalive.cpython-311.pyc +0 -0
- keepalive.py +4 -0
__pycache__/keepalive.cpython-311.pyc
CHANGED
Binary files a/__pycache__/keepalive.cpython-311.pyc and b/__pycache__/keepalive.cpython-311.pyc differ
|
|
keepalive.py
CHANGED
@@ -8,4 +8,8 @@ keepalive = FastAPI()
|
|
8 |
def root():
|
9 |
return "<html><body><p>This is the space for my discord bot (@xcx0902-bot)</p></body></html>"
|
10 |
|
|
|
|
|
|
|
|
|
11 |
os.system("python app.py 1>/dev/null 2>/dev/null &")
|
|
|
8 |
def root():
|
9 |
return "<html><body><p>This is the space for my discord bot (@xcx0902-bot)</p></body></html>"
|
10 |
|
11 |
+
@keepalive.head("/")
|
12 |
+
def root_head():
|
13 |
+
return "OK"
|
14 |
+
|
15 |
os.system("python app.py 1>/dev/null 2>/dev/null &")
|