Spaces:
Runtime error
Runtime error
tori29umai
commited on
Commit
Β·
6dfe6c8
1
Parent(s):
deca380
Update
Browse files
app.py
CHANGED
@@ -163,7 +163,8 @@ class webui:
|
|
163 |
|
164 |
def main(self, image_path):
|
165 |
image = Image.open(image_path).convert('RGBA')
|
166 |
-
|
|
|
167 |
alpha = image.getchannel('A') if image.mode == 'RGBA' else None
|
168 |
image.save(image_path)
|
169 |
image = Image.open(image_path).convert('RGBA')
|
|
|
163 |
|
164 |
def main(self, image_path):
|
165 |
image = Image.open(image_path).convert('RGBA')
|
166 |
+
#ζ‘εΌ΅εγεγι€γγγγ‘γ€γ«εγεεΎ
|
167 |
+
image_name = os.path.splitext(image_path)[0]
|
168 |
alpha = image.getchannel('A') if image.mode == 'RGBA' else None
|
169 |
image.save(image_path)
|
170 |
image = Image.open(image_path).convert('RGBA')
|