diff --git a/ocr.py b/ocr.py index 91e4343d13aba57c156d5501872ff01db46f89f5..36402fad6fdcafd2352194ee30d8148932fcc238 100644 --- a/ocr.py +++ b/ocr.py @@ -20,3 +20,7 @@ os.makedirs(upload_dir, exist_ok=True) os.makedirs(output_dir, exist_ok=True) os.makedirs(result_dir, exist_ok=True) +@ocr.route("/process", methods=["POST"]) +def ocr_inference(): + if "file" not in request.files: + return jsonify({"error": "No file provided"}), 400 \ No newline at end of file