multimodalart HF staff commited on
Commit
22d5d2c
1 Parent(s): e8dc2bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -64,11 +64,7 @@ def train(*inputs):
64
  image = file.crop((left, top, right, bottom))
65
  image = image.resize((512, 512))
66
  extension = file_temp.name.split(".")[1]
67
- if (extension.upper() == "JPG"):
68
- image.save(f'instance_images/{prompt}_({j+1}).jpg', format="JPEG", quality = 100)
69
- else:
70
- image.save(f'instance_images/{prompt}_({j+1}).{extension}', format=extension.upper())
71
- #shutil.copy(file.name, )
72
  file_counter += 1
73
 
74
  uses_custom = inputs[-1]
 
64
  image = file.crop((left, top, right, bottom))
65
  image = image.resize((512, 512))
66
  extension = file_temp.name.split(".")[1]
67
+ image.save(f'instance_images/{prompt}_({j+1}).jpg', format="JPEG", quality = 100)
 
 
 
 
68
  file_counter += 1
69
 
70
  uses_custom = inputs[-1]