Surn commited on
Commit
6e0755a
·
1 Parent(s): 0790175

Minor Code Update

Browse files
Files changed (1) hide show
  1. 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://") or image.startswith("https://"):
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.