Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -266,7 +266,7 @@ def upload_image_to_storage(image, user_id, is_thumbnail = False):
|
|
| 266 |
if is_thumbnail:
|
| 267 |
file_path = f"user_images/{user_id}/thumbnails/{image_id}.png" # path for thumbnail
|
| 268 |
else:
|
| 269 |
-
file_path = f"
|
| 270 |
blob = bucket.blob(file_path)
|
| 271 |
|
| 272 |
# Convert PIL Image to BytesIO object
|
|
|
|
| 266 |
if is_thumbnail:
|
| 267 |
file_path = f"user_images/{user_id}/thumbnails/{image_id}.png" # path for thumbnail
|
| 268 |
else:
|
| 269 |
+
file_path = f"images/{user_id}/{image_id}.png" # path for high resolution images
|
| 270 |
blob = bucket.blob(file_path)
|
| 271 |
|
| 272 |
# Convert PIL Image to BytesIO object
|