Spaces:
Starting
on
T4
Starting
on
T4
Minor Code Update
Browse files- modules/user_history.py +1 -1
modules/user_history.py
CHANGED
@@ -485,7 +485,7 @@ def _copy_image(image: Image.Image | np.ndarray | str | Path, dst_folder: Path,
|
|
485 |
"""Copy image to the images folder."""
|
486 |
# If image is a string, check if it's a URL.
|
487 |
if isinstance(image, str):
|
488 |
-
if image.startswith("http://"
|
489 |
return download_and_save_image(image, dst_folder)
|
490 |
else:
|
491 |
# Assume it's a local filepath string.
|
|
|
485 |
"""Copy image to the images folder."""
|
486 |
# If image is a string, check if it's a URL.
|
487 |
if isinstance(image, str):
|
488 |
+
if image.startswith("http://", "https://"):
|
489 |
return download_and_save_image(image, dst_folder)
|
490 |
else:
|
491 |
# Assume it's a local filepath string.
|