Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,9 @@ def predict():
|
|
10 |
results = model(image)
|
11 |
return jsonify(results.pandas().xyxy[0].to_json(orient="records"))
|
12 |
|
|
|
|
|
|
|
|
|
13 |
if __name__ == '__main__':
|
14 |
app.run(host='0.0.0.0', port=8080)
|
|
|
10 |
results = model(image)
|
11 |
return jsonify(results.pandas().xyxy[0].to_json(orient="records"))
|
12 |
|
13 |
+
@app.route('/health', methods=['GET'])
|
14 |
+
def health():
|
15 |
+
return "Healthy", 200
|
16 |
+
|
17 |
if __name__ == '__main__':
|
18 |
app.run(host='0.0.0.0', port=8080)
|