5m4ck3r commited on
Commit
bb1f655
1 Parent(s): aae2a9b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -78,7 +78,7 @@ def ocr(image: io.BytesIO) -> str:
78
  app = Flask(__name__)
79
 
80
  @app.route('/getans', methods=['POST'])
81
- def async_task():
82
  if 'file' not in request.files:
83
  return jsonify({"status" : False, "msg" : "No file found"}), 400
84
  file = request.files['file']
@@ -94,7 +94,7 @@ def async_task():
94
  return jsonify({"status" : True, "ANS" : answer})
95
 
96
  @app.route('/ocr', methods=['POST'])
97
- def async_task():
98
  if 'file' not in request.files:
99
  return jsonify({"status" : False, "msg" : "No file found"}), 400
100
  file = request.files['file']
 
78
  app = Flask(__name__)
79
 
80
  @app.route('/getans', methods=['POST'])
81
+ def gettans_task():
82
  if 'file' not in request.files:
83
  return jsonify({"status" : False, "msg" : "No file found"}), 400
84
  file = request.files['file']
 
94
  return jsonify({"status" : True, "ANS" : answer})
95
 
96
  @app.route('/ocr', methods=['POST'])
97
+ def task_ocr():
98
  if 'file' not in request.files:
99
  return jsonify({"status" : False, "msg" : "No file found"}), 400
100
  file = request.files['file']