Spaces:
Sleeping
Sleeping
Update r2_uploader.py
Browse files- r2_uploader.py +1 -1
r2_uploader.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import boto3, os
|
| 2 |
from uuid import uuid4
|
| 3 |
|
| 4 |
-
def upload_image_to_r2(image_bytes, folder_name="
|
| 5 |
s3 = boto3.client(
|
| 6 |
"s3",
|
| 7 |
endpoint_url=os.getenv("R2_ENDPOINT"),
|
|
|
|
| 1 |
import boto3, os
|
| 2 |
from uuid import uuid4
|
| 3 |
|
| 4 |
+
def upload_image_to_r2(image_bytes, folder_name="search_arb", app_type="template"):
|
| 5 |
s3 = boto3.client(
|
| 6 |
"s3",
|
| 7 |
endpoint_url=os.getenv("R2_ENDPOINT"),
|