Spaces:
Sleeping
Sleeping
Update app.py
Browse filesseg_map -> overlay
app.py
CHANGED
|
@@ -255,7 +255,7 @@ def process_coastal_image(location, input_image):
|
|
| 255 |
# Try uploading to DigitalOcean Spaces
|
| 256 |
url = "Local Storage"
|
| 257 |
try:
|
| 258 |
-
url = upload_mask(Image.fromarray(
|
| 259 |
except Exception as e:
|
| 260 |
print(f"Upload failed: {e}")
|
| 261 |
url = f"Upload error: {str(e)}"
|
|
@@ -291,7 +291,7 @@ def process_with_alignment(location, reference_image, input_image):
|
|
| 291 |
# Try uploading to DigitalOcean Spaces
|
| 292 |
url = "Local Storage"
|
| 293 |
try:
|
| 294 |
-
url = upload_mask(Image.fromarray(
|
| 295 |
except Exception as e:
|
| 296 |
print(f"Upload failed: {e}")
|
| 297 |
url = f"Upload error: {str(e)}"
|
|
|
|
| 255 |
# Try uploading to DigitalOcean Spaces
|
| 256 |
url = "Local Storage"
|
| 257 |
try:
|
| 258 |
+
url = upload_mask(Image.fromarray(overlay), prefix=location.replace(' ', '_'))
|
| 259 |
except Exception as e:
|
| 260 |
print(f"Upload failed: {e}")
|
| 261 |
url = f"Upload error: {str(e)}"
|
|
|
|
| 291 |
# Try uploading to DigitalOcean Spaces
|
| 292 |
url = "Local Storage"
|
| 293 |
try:
|
| 294 |
+
url = upload_mask(Image.fromarray(overlay), prefix="aligned_" + location.replace(' ', '_'))
|
| 295 |
except Exception as e:
|
| 296 |
print(f"Upload failed: {e}")
|
| 297 |
url = f"Upload error: {str(e)}"
|