Spaces:
Sleeping
Sleeping
Add minimal FastAPI app
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI(title="Eroha Minimal Health Test")
|
| 4 |
+
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def home():
|
| 7 |
+
return {"message": "Hello, Eroha — this is a minimal FastAPI test!"}
|
| 8 |
+
|
| 9 |
+
@app.get("/check")
|
| 10 |
+
def check_health():
|
| 11 |
+
return {
|
| 12 |
+
"status": "ok",
|
| 13 |
+
"modules": ["core", "rag", "metrics"],
|
| 14 |
+
"version": "test-1.0"
|
| 15 |
+
}
|