Spaces:
Running
Running
tori29umai
commited on
Commit
•
126c545
1
Parent(s):
3c95d4f
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,8 @@ import zipfile
|
|
5 |
|
6 |
|
7 |
def save_image(image, path):
|
8 |
-
#
|
9 |
-
|
10 |
-
image = image.convert('RGB')
|
11 |
-
|
12 |
-
# 画像の保存
|
13 |
-
image.save(path)
|
14 |
|
15 |
def process_image(image):
|
16 |
# 元の画像のサイズ
|
@@ -88,7 +84,7 @@ class webui:
|
|
88 |
output3_path = f"{image_name}_3.png"
|
89 |
output4_path = f"{image_name}_4.png"
|
90 |
|
91 |
-
#
|
92 |
save_image(output1, output1_path)
|
93 |
save_image(output2, output2_path)
|
94 |
save_image(output3, output3_path)
|
@@ -125,4 +121,4 @@ class webui:
|
|
125 |
|
126 |
if __name__ == "__main__":
|
127 |
ui = webui()
|
128 |
-
ui.launch(share=True)
|
|
|
5 |
|
6 |
|
7 |
def save_image(image, path):
|
8 |
+
# 画像の保存 (PNG形式で保存)
|
9 |
+
image.save(path, format='PNG')
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def process_image(image):
|
12 |
# 元の画像のサイズ
|
|
|
84 |
output3_path = f"{image_name}_3.png"
|
85 |
output4_path = f"{image_name}_4.png"
|
86 |
|
87 |
+
# 画像を保存(PNG形式で保存)
|
88 |
save_image(output1, output1_path)
|
89 |
save_image(output2, output2_path)
|
90 |
save_image(output3, output3_path)
|
|
|
121 |
|
122 |
if __name__ == "__main__":
|
123 |
ui = webui()
|
124 |
+
ui.launch(share=True)
|