Spaces:
Running
Running
Randald Villegas
commited on
Commit
·
3319c49
1
Parent(s):
fb1af6e
refact (app): New method to try to wake up the server
Browse files- src/app.py +4 -0
src/app.py
CHANGED
@@ -13,6 +13,10 @@ PORT = 7860
|
|
13 |
|
14 |
frame_queue = queue.Queue(maxsize=1)
|
15 |
|
|
|
|
|
|
|
|
|
16 |
@app.route('/')
|
17 |
def html_stream():
|
18 |
return start_html_stream(frame_queue)
|
|
|
13 |
|
14 |
frame_queue = queue.Queue(maxsize=1)
|
15 |
|
16 |
+
@app.route("/status", methods=["GET"])
|
17 |
+
def status():
|
18 |
+
return {"Server": "Running"}, 200
|
19 |
+
|
20 |
@app.route('/')
|
21 |
def html_stream():
|
22 |
return start_html_stream(frame_queue)
|