Spaces:
Paused
Paused
Upload app.py with huggingface_hub
Browse files
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.
|
| 258 |
-
|
|
|
|
| 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:
|