Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def restore_image():
|
|
91 |
file.save(input_path)
|
92 |
|
93 |
# 画像処理
|
94 |
-
extension = os.path.splitext(os.path.basename(str(input_path))[1]
|
95 |
img = cv2.imread(input_path, cv2.IMREAD_UNCHANGED)
|
96 |
|
97 |
if len(img.shape) == 3 and img.shape[2] == 4:
|
|
|
91 |
file.save(input_path)
|
92 |
|
93 |
# 画像処理
|
94 |
+
extension = os.path.splitext(os.path.basename(str(input_path)))[1]
|
95 |
img = cv2.imread(input_path, cv2.IMREAD_UNCHANGED)
|
96 |
|
97 |
if len(img.shape) == 3 and img.shape[2] == 4:
|