Spaces:
Sleeping
Sleeping
Update load_files.py
Browse files- 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 |
-
|
| 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()
|