umuthopeyildirim
commited on
Commit
•
7a4e452
1
Parent(s):
e911b6f
Update image saving method
Browse files
app.py
CHANGED
@@ -115,7 +115,8 @@ with gr.Blocks(css=css) as demo:
|
|
115 |
|
116 |
# Continue with your file saving operations
|
117 |
tmp = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
|
118 |
-
cv2.imwrite(tmp.name, output_image)
|
|
|
119 |
|
120 |
return [(original_image, output_image), tmp.name]
|
121 |
|
|
|
115 |
|
116 |
# Continue with your file saving operations
|
117 |
tmp = tempfile.NamedTemporaryFile(suffix='.png', delete=False)
|
118 |
+
# cv2.imwrite(tmp.name, output_image)
|
119 |
+
plt.imsave(tmp.name, pred_depth, cmap='jet')
|
120 |
|
121 |
return [(original_image, output_image), tmp.name]
|
122 |
|