Spaces:
Sleeping
Sleeping
create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
app = FastAPI()
|
| 5 |
+
|
| 6 |
+
@app.get("/")
|
| 7 |
+
def read_root():
|
| 8 |
+
return {"message": "Deployment Observability API Running"}
|
| 9 |
+
|
| 10 |
+
@app.get("/health")
|
| 11 |
+
def health():
|
| 12 |
+
return {"status": "ok"}
|