From a02485a64e3d8f501f9922c7399d35898363d2ef Mon Sep 17 00:00:00 2001 From: wuzekai <3025054974@qq.com> Date: Tue, 8 Jul 2025 05:19:06 +0000 Subject: [PATCH] Update ocr.py --- ocr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ocr.py b/ocr.py index 91e4343..36402fa 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 -- 2.22.0