Spaces:
Sleeping
Sleeping
Add pick color
Browse files- pages/App.py +2 -2
pages/App.py
CHANGED
@@ -267,9 +267,9 @@ def load_image(in_image_file):
|
|
267 |
# out_image_path = "img."+in_image_file.name.split('.')[-1]
|
268 |
|
269 |
if isinstance(in_image_file, str):
|
270 |
-
out_image_path = "
|
271 |
else:
|
272 |
-
out_image_path = "
|
273 |
|
274 |
img = Image.open(in_image_file)
|
275 |
img_saved = img.save(out_image_path)
|
|
|
267 |
# out_image_path = "img."+in_image_file.name.split('.')[-1]
|
268 |
|
269 |
if isinstance(in_image_file, str):
|
270 |
+
out_image_path = "tmp_"+in_image_file
|
271 |
else:
|
272 |
+
out_image_path = "tmp_"+in_image_file.name
|
273 |
|
274 |
img = Image.open(in_image_file)
|
275 |
img_saved = img.save(out_image_path)
|