Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def delete_local_file(file_path):
|
|
54 |
print(f"{file_path} 文件不存在。")
|
55 |
|
56 |
|
57 |
-
def run(url,
|
58 |
|
59 |
# 网络图片 URL 和本地保存路径
|
60 |
tmp_file_name = uuid.uuid4()
|
@@ -82,6 +82,7 @@ def run(url,quality,output_format,storage,access_key_id,access_key_secret,securi
|
|
82 |
return image_base64
|
83 |
else:
|
84 |
return '图片下载失败'
|
|
|
85 |
|
86 |
with gr.Blocks() as demo:
|
87 |
|
|
|
54 |
print(f"{file_path} 文件不存在。")
|
55 |
|
56 |
|
57 |
+
def run(url,access_key_id,access_key_secret,securityToken,endpoint,bucket_name,upload_filename=uuid.uuid4()):
|
58 |
|
59 |
# 网络图片 URL 和本地保存路径
|
60 |
tmp_file_name = uuid.uuid4()
|
|
|
82 |
return image_base64
|
83 |
else:
|
84 |
return '图片下载失败'
|
85 |
+
return '运行失败'
|
86 |
|
87 |
with gr.Blocks() as demo:
|
88 |
|