userIdc2024 commited on
Commit
e417863
·
verified ·
1 Parent(s): 34ea641

Update load_files.py

Browse files
Files changed (1) hide show
  1. load_files.py +1 -2
load_files.py CHANGED
@@ -60,8 +60,7 @@ class ImageGalleryApp:
60
  def load_image_from_url(self, url: str) -> Optional[Image.Image]:
61
  """Load image from URL with better error handling"""
62
  try:
63
- new_base = "https://adgen.statics.lookfinity.net/"
64
- full_url = new_base + url.rsplit('/', 1)[-1]
65
 
66
  response = requests.get(full_url, timeout=5, stream=True) # Reduced timeout, added streaming
67
  response.raise_for_status()
 
60
  def load_image_from_url(self, url: str) -> Optional[Image.Image]:
61
  """Load image from URL with better error handling"""
62
  try:
63
+ full_url = url
 
64
 
65
  response = requests.get(full_url, timeout=5, stream=True) # Reduced timeout, added streaming
66
  response.raise_for_status()