Spaces:
Running on Zero
Running on Zero
Delete server.py
Browse files
server.py
DELETED
|
@@ -1,21 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
from fastapi.responses import FileResponse
|
| 3 |
-
import subprocess
|
| 4 |
-
import sys
|
| 5 |
-
|
| 6 |
-
app = FastAPI(title="Q-SNASB & Q-MCT v4.2")
|
| 7 |
-
|
| 8 |
-
@app.get("/")
|
| 9 |
-
def serve_flight_deck():
|
| 10 |
-
return FileResponse("index.html")
|
| 11 |
-
|
| 12 |
-
@app.get("/api/sil-diagnostics")
|
| 13 |
-
def run_sil_diagnostics():
|
| 14 |
-
fw = subprocess.run(["/app/build/quantum_core_driver"], capture_output=True, text=True)
|
| 15 |
-
mw = subprocess.run(["/app/build/swarm_wci_dtn_node"], capture_output=True, text=True)
|
| 16 |
-
ai = subprocess.run([sys.executable, "/app/quantum_co_processor/q_navigation_engine.py"], capture_output=True, text=True)
|
| 17 |
-
return {
|
| 18 |
-
"layer1_firmware": fw.stdout.strip(),
|
| 19 |
-
"layer2_middleware": mw.stdout.strip(),
|
| 20 |
-
"layer3_quantum_ai": ai.stdout.strip()
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|