Spaces:
Running
on
Zero
Running
on
Zero
liuyang
commited on
Commit
·
d5d2af9
1
Parent(s):
e84487c
update
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ def upload_data_to_r2(data, bucket_name, object_name, content_type='application/
|
|
82 |
endpoint_url=f'https://{S3_ENDPOINT}',
|
83 |
aws_access_key_id=S3_ACCESS_KEY,
|
84 |
aws_secret_access_key=S3_SECRET_KEY,
|
85 |
-
config = Config(s3={"addressing_style": "virtual"
|
86 |
)
|
87 |
|
88 |
# Upload the data to R2 bucket
|
|
|
82 |
endpoint_url=f'https://{S3_ENDPOINT}',
|
83 |
aws_access_key_id=S3_ACCESS_KEY,
|
84 |
aws_secret_access_key=S3_SECRET_KEY,
|
85 |
+
config = Config(s3={"addressing_style": "virtual"}, signature_version='v4'),
|
86 |
)
|
87 |
|
88 |
# Upload the data to R2 bucket
|