Skip to content

Commit 76e7b84

Browse files
authored
Update web_dashboard.py
1 parent c4ae7bc commit 76e7b84

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

synapdrive_ai/interface/web_dashboard.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# synapdrive_ai/interface/web_dashboard.py
2-
31
from __future__ import annotations
42

53
from flask import Flask, jsonify, render_template, request
64

75
from synapdrive_ai.pipeline import SynapDrivePipeline
86

97
app = Flask(__name__)
10-
pipeline = SynapDrivePipeline()
8+
9+
# IMPORTANT: use no-delay mode so:
10+
# - local dev feels snappy
11+
# - tests don’t sleep for simulated actuation
12+
pipeline = SynapDrivePipeline(simulate_delay=False)
1113

1214

1315
@app.get("/")
@@ -40,7 +42,6 @@ def run_signal():
4042

4143

4244
def main():
43-
# Local dev server. For production you'd use gunicorn, etc.
4445
app.run(host="127.0.0.1", port=5055, debug=True)
4546

4647

0 commit comments

Comments
 (0)