save code
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ def upload_to_oss(image_path, object_name=None):
|
||||
return None
|
||||
|
||||
# 使用示例
|
||||
image_path = '/home/szlc/code/ComfyUI/change_cloth/girl8010.jpg' # 本地图片路径
|
||||
image_path = '/home/xsl/code/ComfyUI/change_cloth/girl8010.jpg' # 本地图片路径
|
||||
upload_to_oss(image_path, 'girl8011.jpg') # 第二个参数可选,指定OSS上的路径
|
||||
https_url = f'https://llyz.oss-cn-beijing.aliyuncs.com/girl8011.jpg'
|
||||
print(f"生成的HTTPS URL: {https_url}")
|
||||
|
||||
Reference in New Issue
Block a user