Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- keepalive.py +2 -1
keepalive.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
from fastapi import FastAPI
|
|
|
2 |
import os
|
3 |
|
4 |
keepalive = FastAPI()
|
5 |
|
6 |
-
@keepalive.get("/")
|
7 |
def root():
|
8 |
return "<html><body><p>This is the space for my discord bot (@xcx0902-bot)</p></body></html>"
|
9 |
|
|
|
1 |
from fastapi import FastAPI
|
2 |
+
from fastapi.responses import HTMLResponse
|
3 |
import os
|
4 |
|
5 |
keepalive = FastAPI()
|
6 |
|
7 |
+
@keepalive.get("/", response_class=HTMLResponse)
|
8 |
def root():
|
9 |
return "<html><body><p>This is the space for my discord bot (@xcx0902-bot)</p></body></html>"
|
10 |
|