jboth commited on
Commit
6b31dc3
·
verified ·
1 Parent(s): 8484f0c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -254,8 +254,9 @@ def reconstruct_objects(image: np.ndarray):
254
  return glb, preview, f"OK: {len(masks)} objects, {n:,} faces ({elapsed}s)"
255
  except Exception as e:
256
  import traceback
257
- traceback.print_exc()
258
- return None, None, f"Error: {e}"
 
259
 
260
  # --- UI ---
261
  with gr.Blocks(title="SAM 3D Objects") as demo:
 
254
  return glb, preview, f"OK: {len(masks)} objects, {n:,} faces ({elapsed}s)"
255
  except Exception as e:
256
  import traceback
257
+ tb = traceback.format_exc()
258
+ print(tb)
259
+ return None, None, f"Error:\n{tb[-1500:]}"
260
 
261
  # --- UI ---
262
  with gr.Blocks(title="SAM 3D Objects") as demo: