Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,6 @@ import io
|
|
| 7 |
def modify_texture():
|
| 8 |
# Load the GLB file
|
| 9 |
scene = trimesh.load_mesh("train.glb")
|
| 10 |
-
geometries = list(scene.geometry.values())
|
| 11 |
-
geometry = geometries[0]
|
| 12 |
-
adjacency_matrix = geometry.edges_sparse
|
| 13 |
-
|
| 14 |
# Open the texture image
|
| 15 |
im = Image.open("defect.jpg")
|
| 16 |
|
|
|
|
| 7 |
def modify_texture():
|
| 8 |
# Load the GLB file
|
| 9 |
scene = trimesh.load_mesh("train.glb")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# Open the texture image
|
| 11 |
im = Image.open("defect.jpg")
|
| 12 |
|