Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def save_image_from_browser(image_url: str) -> str:
|
|
46 |
response.raise_for_status()
|
47 |
|
48 |
# Save the image locally (you can adjust the save path as needed)
|
49 |
-
image_path = f"/
|
50 |
with open(image_path, "wb") as file:
|
51 |
file.write(response.content)
|
52 |
|
|
|
46 |
response.raise_for_status()
|
47 |
|
48 |
# Save the image locally (you can adjust the save path as needed)
|
49 |
+
image_path = f"img/{image_url.split('/')[-1]}"
|
50 |
with open(image_path, "wb") as file:
|
51 |
file.write(response.content)
|
52 |
|