Spaces:
Sleeping
Sleeping
Update backend/backend_api.py
Browse files- backend/backend_api.py +1 -1
backend/backend_api.py
CHANGED
|
@@ -15,7 +15,7 @@ CORS(app, resources={r"/api/*": {"origins": "https://github.io"}})
|
|
| 15 |
def get_ai_prediction():
|
| 16 |
if 'aiImage' not in request.files:
|
| 17 |
return jsonify({"prediction": "Error, no file uploaded"}), 400
|
| 18 |
-
image = request.files['
|
| 19 |
ai_prediction = slice_sentences(image.stream)
|
| 20 |
return jsonify({"prediction": ai_prediction})
|
| 21 |
|
|
|
|
| 15 |
def get_ai_prediction():
|
| 16 |
if 'aiImage' not in request.files:
|
| 17 |
return jsonify({"prediction": "Error, no file uploaded"}), 400
|
| 18 |
+
image = request.files['aiImage']
|
| 19 |
ai_prediction = slice_sentences(image.stream)
|
| 20 |
return jsonify({"prediction": ai_prediction})
|
| 21 |
|