Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ DB_PATH = "/tmp/cma_memory.db"
|
|
| 20 |
vector_global = VectorEmocional(db_path=DB_PATH)
|
| 21 |
modulador_global = ModuladorParametrico()
|
| 22 |
|
| 23 |
-
@app.get("/")
|
| 24 |
async def reach():
|
| 25 |
return {"status": "Cortex-Nexus is Alive", "emotional_state": vector_global.obtener_estado()}
|
| 26 |
|
|
@@ -38,7 +38,7 @@ async def get_history():
|
|
| 38 |
except Exception as e:
|
| 39 |
return {"error": str(e)}
|
| 40 |
|
| 41 |
-
@app.get("/
|
| 42 |
async def dashboard():
|
| 43 |
html_content = """
|
| 44 |
<!DOCTYPE html>
|
|
|
|
| 20 |
vector_global = VectorEmocional(db_path=DB_PATH)
|
| 21 |
modulador_global = ModuladorParametrico()
|
| 22 |
|
| 23 |
+
@app.get("/status")
|
| 24 |
async def reach():
|
| 25 |
return {"status": "Cortex-Nexus is Alive", "emotional_state": vector_global.obtener_estado()}
|
| 26 |
|
|
|
|
| 38 |
except Exception as e:
|
| 39 |
return {"error": str(e)}
|
| 40 |
|
| 41 |
+
@app.get("/", response_class=HTMLResponse)
|
| 42 |
async def dashboard():
|
| 43 |
html_content = """
|
| 44 |
<!DOCTYPE html>
|