Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
app = FastAPI()
|
| 5 |
|
| 6 |
@app.get("/")
|
| 7 |
-
def
|
| 8 |
-
return {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
@app.get("/health")
|
| 11 |
-
def health():
|
| 12 |
return {"status": "ok"}
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
import os
|
| 3 |
|
| 4 |
+
app = FastAPI(title="Deployment Observability API")
|
| 5 |
|
| 6 |
@app.get("/")
|
| 7 |
+
async def root():
|
| 8 |
+
return {
|
| 9 |
+
"status": "healthy",
|
| 10 |
+
"service": "deployment-ready-ga2-e8c0f1",
|
| 11 |
+
"port": 7152,
|
| 12 |
+
}
|
| 13 |
|
| 14 |
@app.get("/health")
|
| 15 |
+
async def health():
|
| 16 |
return {"status": "ok"}
|