Commit 98afcd22 authored by wuzekai's avatar wuzekai

Update ocr.py

parent b1cc8a27
Pipeline #580 canceled with stages
......@@ -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
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