Procid commited on
Commit
668189f
·
verified ·
1 Parent(s): 841cfcc

Update backend/backend_api.py

Browse files
Files changed (1) hide show
  1. 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['ai_image']
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