From 98afcd229b9f28ddc91a30efdcc62797790a6edd Mon Sep 17 00:00:00 2001 From: wuzekai <3025054974@qq.com> Date: Tue, 8 Jul 2025 05:25:26 +0000 Subject: [PATCH] Update ocr.py --- ocr.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ocr.py b/ocr.py index aafa3db..a7113c4 100644 --- a/ocr.py +++ b/ocr.py @@ -155,4 +155,11 @@ def delete_files(uuid_str): return jsonify({ "message": "Files deleted successfully", "deleted_files": deleted_files - }), 200 \ No newline at end of file + }), 200 + +def is_valid_uuid(uuid_str): + try: + uuid.UUID(uuid_str) + return True + except ValueError: + return False \ No newline at end of file -- 2.22.0