Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ uploaded_file = st.file_uploader("Choose an OBJ file", type="obj")
|
|
12 |
|
13 |
if uploaded_file is not None:
|
14 |
try:
|
15 |
-
# Load the mesh using trimesh
|
16 |
-
mesh = trimesh.load(uploaded_file,
|
17 |
|
18 |
# Check if mesh is valid
|
19 |
if mesh.is_empty:
|
|
|
12 |
|
13 |
if uploaded_file is not None:
|
14 |
try:
|
15 |
+
# Load the mesh using trimesh with explicit file_type
|
16 |
+
mesh = trimesh.load(uploaded_file, file_type='obj')
|
17 |
|
18 |
# Check if mesh is valid
|
19 |
if mesh.is_empty:
|