mouseland commited on
Commit
7b4fea1
·
verified ·
1 Parent(s): 64935e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -278,7 +278,9 @@ def norm_path(filepath):
278
  img = np.clip(img, 0, 1)
279
  fpath, fext = os.path.splitext(filepath)
280
  filepath = fpath +'.png'
281
- imsave(filepath, img)
 
 
282
  return filepath
283
 
284
  def update_image(filepath):
 
278
  img = np.clip(img, 0, 1)
279
  fpath, fext = os.path.splitext(filepath)
280
  filepath = fpath +'.png'
281
+ pil_image = Image.fromarray(img)
282
+ pil_image.save(filepath)
283
+ #imsave(filepath, pil_image)
284
  return filepath
285
 
286
  def update_image(filepath):