dschandra commited on
Commit
ef97656
·
verified ·
1 Parent(s): 9ab6810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, force='mesh')
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: