tori29umai commited on
Commit
6dfe6c8
Β·
1 Parent(s): deca380
Files changed (1) hide show
  1. app.py +2 -1
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
- image_name = os.path.basename(image_path)
 
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')