图片方向识别器准确率有限,尝试同时识别原图和旋转90度之后的图。修正日志。

This commit is contained in:
2024-06-28 17:01:27 +08:00
parent 7e4b17c30e
commit 6b68a7f7ae
2 changed files with 64 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ def get_private_url(key):
# 判断文件是否存在
_, resp = get_ufile_handler.head_file(BUCKET, key)
if resp.status_code != 200:
logging.warning("uCloud中未找到(%s)! status: %d error: %s", key, resp.status_code, resp.error)
logging.warning(f"uCloud中未找到({key})! status: {resp.status_code} error: {resp.error}")
return None
# 获取公有空间下载url