zhiweili
commited on
Commit
•
ed36716
1
Parent(s):
6c55e2e
always save as png
Browse files- app_makeup.py +4 -4
app_makeup.py
CHANGED
@@ -59,10 +59,10 @@ def create_demo() -> gr.Blocks:
|
|
59 |
tmpPrefix = "/tmp/gradio/"
|
60 |
|
61 |
extension = 'png'
|
62 |
-
if enhanced_image.mode == 'RGBA':
|
63 |
-
|
64 |
-
else:
|
65 |
-
|
66 |
|
67 |
targetDir = f"{tmpPrefix}output/"
|
68 |
if not os.path.exists(targetDir):
|
|
|
59 |
tmpPrefix = "/tmp/gradio/"
|
60 |
|
61 |
extension = 'png'
|
62 |
+
# if enhanced_image.mode == 'RGBA':
|
63 |
+
# extension = 'png'
|
64 |
+
# else:
|
65 |
+
# extension = 'jpg'
|
66 |
|
67 |
targetDir = f"{tmpPrefix}output/"
|
68 |
if not os.path.exists(targetDir):
|