+++ .gitignore
... | ... | @@ -0,0 +1,1 @@ |
1 | +/hls_streaming/captured_frame_/ |
--- inference_endpoint.py
+++ inference_endpoint.py
... | ... | @@ -135,4 +135,4 @@ |
135 | 135 |
|
136 | 136 |
|
137 | 137 |
if __name__ == '__main__': |
138 |
- app.run(debug=True, port=12345) |
|
138 |
+ app.run(debug=False, port=12345) |
--- postprocess_draft_pingpong.py
+++ postprocess_draft_pingpong.py
... | ... | @@ -1,4 +1,6 @@ |
1 | 1 |
from flask import Flask, request, jsonify |
2 |
+import psycopg2 |
|
3 |
+ |
|
2 | 4 |
|
3 | 5 |
app = Flask(__name__) |
4 | 6 |
|
... | ... | @@ -30,6 +32,12 @@ |
30 | 32 |
} |
31 | 33 |
|
32 | 34 |
|
35 |
+def check_thres(): |
|
36 |
+ # call database |
|
37 |
+ # check threshold |
|
38 |
+ # return resulting value |
|
39 |
+ pass |
|
40 |
+ |
|
33 | 41 |
# Function to check if there are 5 consecutive failures |
34 | 42 |
def check_consecutive_failures(source, status_list): |
35 | 43 |
if len(status_list) >= 5 and status_list[-5:] == ['FAIL'] * 5: |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?