Spaces:
Paused
Paused
pseudotheos
commited on
Commit
•
e142abe
1
Parent(s):
ec8ffd1
Update app.py
Browse files
app.py
CHANGED
@@ -268,7 +268,7 @@ async def get_image(
|
|
268 |
job_id: int = Form(...)
|
269 |
):
|
270 |
image_path = f"/tmp/{job_id}_output.png"
|
271 |
-
if
|
272 |
return None
|
273 |
|
274 |
with open(image_path, "rb") as file:
|
|
|
268 |
job_id: int = Form(...)
|
269 |
):
|
270 |
image_path = f"/tmp/{job_id}_output.png"
|
271 |
+
if os.path.isfile(image_path) is False:
|
272 |
return None
|
273 |
|
274 |
with open(image_path, "rb") as file:
|