Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,8 @@ def remove_background():
|
|
| 47 |
|
| 48 |
# 結果として返される2つの画像パスを取得
|
| 49 |
image_path1, image_path2 = result
|
| 50 |
-
depth_image = Image.open(
|
| 51 |
-
processed_image = Image.open(
|
| 52 |
|
| 53 |
return jsonify({
|
| 54 |
"depth_image": image_to_data_url(depth_image),
|
|
|
|
| 47 |
|
| 48 |
# 結果として返される2つの画像パスを取得
|
| 49 |
image_path1, image_path2 = result
|
| 50 |
+
depth_image = Image.open(image_path2)
|
| 51 |
+
processed_image = Image.open(image_path1)
|
| 52 |
|
| 53 |
return jsonify({
|
| 54 |
"depth_image": image_to_data_url(depth_image),
|