xcx0902 commited on
Commit
084b2a8
·
verified ·
1 Parent(s): 0962466

Upload folder using huggingface_hub

Browse files
__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 &")