Update main.py
Browse files
main.py
CHANGED
@@ -96,7 +96,7 @@ def gettans_task():
|
|
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']
|
101 |
if file.filename == '':
|
102 |
return jsonify({"error": "No selected file"}), 400
|
|
|
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", "data" : f"{request.files}"}), 400
|
100 |
file = request.files['file']
|
101 |
if file.filename == '':
|
102 |
return jsonify({"error": "No selected file"}), 400
|