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

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. index.html +9 -0
  2. 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 "<html><body><p>This is the space for my discord bot (@xcx0902-bot)</p></body></html>"
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():