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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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