Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- index.html +9 -0
- keepalive.py +1 -1
index.html
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<html>
|
2 |
+
<head>
|
3 |
+
<title>HF-Space xcx0902's discord bot</title>
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
<p>This is the space for my discord bot (@xcx0902-bot)</p>
|
7 |
+
<a href="https://stats.uptimerobot.com/pZsa4c0nwJ">UptimeRobot</a>
|
8 |
+
</body>
|
9 |
+
</html>
|
keepalive.py
CHANGED
@@ -6,7 +6,7 @@ keepalive = FastAPI()
|
|
6 |
|
7 |
@keepalive.get("/", response_class=HTMLResponse)
|
8 |
def root():
|
9 |
-
return "
|
10 |
|
11 |
@keepalive.head("/")
|
12 |
def root_head():
|
|
|
6 |
|
7 |
@keepalive.get("/", response_class=HTMLResponse)
|
8 |
def root():
|
9 |
+
return open("index.html").read()
|
10 |
|
11 |
@keepalive.head("/")
|
12 |
def root_head():
|