Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import io
|
|
6 |
|
7 |
def modify_texture():
|
8 |
# Load the GLB file
|
9 |
-
mesh = trimesh.load_mesh("train.glb",
|
10 |
|
11 |
# Open the texture image
|
12 |
im = Image.open("defect.jpg")
|
|
|
6 |
|
7 |
def modify_texture():
|
8 |
# Load the GLB file
|
9 |
+
mesh = trimesh.load_mesh("train.glb", force = 'mesh')
|
10 |
|
11 |
# Open the texture image
|
12 |
im = Image.open("defect.jpg")
|