agentsay commited on
Commit
696e669
·
verified ·
1 Parent(s): 49ddca2

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +12 -0
main.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ from fastapi.responses import FileResponse
3
+
4
+ app = FastAPI()
5
+
6
+ @app.get("/")
7
+ async def serve_html():
8
+ return FileResponse("index.html")
9
+
10
+ @app.get("/health")
11
+ async def health():
12
+ return {"status": "ok"}