Commit a02485a6 authored by wuzekai's avatar wuzekai

Update ocr.py

parent dd02f61b
Pipeline #569 canceled with stages
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment