jiuface commited on
Commit
62abcd3
·
verified ·
1 Parent(s): b5cc19a

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +1 -8
src/app.py CHANGED
@@ -136,14 +136,7 @@ def process(
136
  solver_type=solver_type,
137
  )
138
 
139
- output_path = "/tmp/enhanced_image.png"
140
- enhanced_image.save(output_path, format="PNG")
141
-
142
- # Load the saved PNG image to ensure it is returned in PNG format
143
- enhanced_image_png = Image.open(output_path)
144
-
145
- return output_path, enhanced_image_png
146
- #return enhanced_image
147
 
148
 
149
  with gr.Blocks() as demo:
 
136
  solver_type=solver_type,
137
  )
138
 
139
+ return enhanced_image
 
 
 
 
 
 
 
140
 
141
 
142
  with gr.Blocks() as demo: