Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,9 @@ def predict():
|
|
| 65 |
db_metadata, db_constructor, db_params,
|
| 66 |
config
|
| 67 |
)
|
| 68 |
-
|
|
|
|
|
|
|
| 69 |
return jsonify({
|
| 70 |
'predictions': predictions
|
| 71 |
})
|
|
|
|
| 65 |
db_metadata, db_constructor, db_params,
|
| 66 |
config
|
| 67 |
)
|
| 68 |
+
if predictions.get('status') == 999:
|
| 69 |
+
return jsonify(predictions)
|
| 70 |
+
|
| 71 |
return jsonify({
|
| 72 |
'predictions': predictions
|
| 73 |
})
|