pseudotheos commited on
Commit
e142abe
1 Parent(s): ec8ffd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 !os.path.isfile(image_path):
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: