Awesome-Developer commited on
Commit
ca1c255
·
verified ·
1 Parent(s): e9ec8cb

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+ import subprocess
3
+
4
+ app = FastAPI()
5
+
6
+ @app.get("/")
7
+ def home():
8
+ return {"status": "Space is Running", "note": "Use SSH to connect"}
9
+
10
+ @app.get("/health")
11
+ def health():
12
+ return {"status": "ok"}