Spaces:
Running on Zero
Running on Zero
Download server.py from Samuelson77/q-snasb-flight-deck: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/spaces/Samuelson77/q-snasb-flight-deck/resolve/e6fd3ebcf6ab054f4ef845bebaafa17aa6b5f398/server.py
- Command line
-
hf download hf://spaces/Samuelson77/q-snasb-flight-deck@e6fd3ebcf6ab054f4ef845bebaafa17aa6b5f398/server.py
-
curl -L -o server.py https://huggingface.co/spaces/Samuelson77/q-snasb-flight-deck/resolve/e6fd3ebcf6ab054f4ef845bebaafa17aa6b5f398/server.py
752 Bytes
| from fastapi import FastAPI | |
| from fastapi.responses import FileResponse | |
| import subprocess | |
| import sys | |
| app = FastAPI(title="Q-SNASB & Q-MCT v4.2") | |
| def serve_flight_deck(): | |
| return FileResponse("index.html") | |
| def run_sil_diagnostics(): | |
| fw = subprocess.run(["/app/build/quantum_core_driver"], capture_output=True, text=True) | |
| mw = subprocess.run(["/app/build/swarm_wci_dtn_node"], capture_output=True, text=True) | |
| ai = subprocess.run([sys.executable, "/app/quantum_co_processor/q_navigation_engine.py"], capture_output=True, text=True) | |
| return { | |
| "layer1_firmware": fw.stdout.strip(), | |
| "layer2_middleware": mw.stdout.strip(), | |
| "layer3_quantum_ai": ai.stdout.strip() | |
| } |