Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,13 @@ app = FastAPI()
|
|
33 |
cognitive_engine = CognitiveEngine(llm_model)
|
34 |
|
35 |
# Routes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
@app.get("/status")
|
37 |
def status():
|
38 |
return {"status": "active", "agents": ["planner", "executor", "critic"]}
|
|
|
33 |
cognitive_engine = CognitiveEngine(llm_model)
|
34 |
|
35 |
# Routes
|
36 |
+
@app.get("/")
|
37 |
+
def home():
|
38 |
+
return {
|
39 |
+
"message": "✅ Autonomous AI API is live",
|
40 |
+
"routes": ["/status", "/generate?prompt=..."]
|
41 |
+
}
|
42 |
+
|
43 |
@app.get("/status")
|
44 |
def status():
|
45 |
return {"status": "active", "agents": ["planner", "executor", "critic"]}
|