This commit is contained in:
2025-08-21 08:56:06 +08:00
parent f45ae8e942
commit c577687727
5 changed files with 24 additions and 8 deletions

View File

@@ -38,11 +38,11 @@ def batch_qvq(output_dir, img_list):
img_url_list = []
for file_path in img_list:
# 创建上传器实例
uploader = ObsUploader(OBS_AK, OBS_SK, "https://" + OBS_SERVER)
uploader = ObsUploader()
# 上传参数
object_key = OBS_PREFIX + "/" + file_path
# 执行上传
success, result = uploader.upload_file(OBS_BUCKET, object_key, file_path)
success, result = uploader.upload_file(object_key, file_path)
# 处理结果
if success:
logger.info(f'{file_path}上传成功!')