Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ async def niji_api(prompt, progress=gr.Progress(), max_retries=5, backoff_factor
|
|
69 |
return Image.open(BytesIO(response.content))
|
70 |
except requests.exceptions.RequestException as e:
|
71 |
logger.error(f"Failed to fetch image")
|
72 |
-
|
73 |
|
74 |
def download_and_split_image(url):
|
75 |
img = fetch_image(url)
|
|
|
69 |
return Image.open(BytesIO(response.content))
|
70 |
except requests.exceptions.RequestException as e:
|
71 |
logger.error(f"Failed to fetch image")
|
72 |
+
return None
|
73 |
|
74 |
def download_and_split_image(url):
|
75 |
img = fetch_image(url)
|