Alexandros Popov commited on
Commit
99bc28a
·
1 Parent(s): 3d3ed75

fixed jpeg.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def process_image_with_agents(image: Image.Image, prompt: str):
22
  )
23
 
24
  image_files = sorted(
25
- [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith((".jpg", ".png"))], key=os.path.getmtime
26
  )
27
  images = [(Image.open(p), os.path.basename(p)) for p in image_files]
28
 
 
22
  )
23
 
24
  image_files = sorted(
25
+ [os.path.join(temp_dir, f) for f in os.listdir(temp_dir) if f.endswith(".jpeg")], key=os.path.getmtime
26
  )
27
  images = [(Image.open(p), os.path.basename(p)) for p in image_files]
28