chuuhtetnaing commited on
Commit
8be6065
·
1 Parent(s): 1cbf784

changed to jpeg

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -49,7 +49,8 @@ def process_file(f):
49
  im = load_img(f, output_type="pil")
50
  im = im.convert("RGB")
51
  transparent = process(im)
52
- transparent.save(name_path)
 
53
  return name_path
54
 
55
  slider1 = gr.Image()
 
49
  im = load_img(f, output_type="pil")
50
  im = im.convert("RGB")
51
  transparent = process(im)
52
+ rgb_image = transparent.convert("RGB") # Ensure the final image is in RGB mode for JPEG
53
+ rgb_image.save(name_path)
54
  return name_path
55
 
56
  slider1 = gr.Image()