- gradio_app.py +1 -2
gradio_app.py
CHANGED
@@ -52,12 +52,11 @@ os.makedirs(OUTPUT_DIR, exist_ok=True)
|
|
52 |
device = spar3d_utils.get_device()
|
53 |
bg_remover = Remover()
|
54 |
|
55 |
-
# --- HF_TOKEN
|
56 |
spar3d_model = SPAR3D.from_pretrained(
|
57 |
"stabilityai/stable-point-aware-3d",
|
58 |
config_name="config.yaml",
|
59 |
weight_name="model.safetensors",
|
60 |
-
use_auth_token=HF_TOKEN # Pass the token
|
61 |
).eval().to(device)
|
62 |
# ----------------------------
|
63 |
|
|
|
52 |
device = spar3d_utils.get_device()
|
53 |
bg_remover = Remover()
|
54 |
|
55 |
+
# --- HF_TOKEN is not neeeded ---- just check that HF_TOKEN exists---
|
56 |
spar3d_model = SPAR3D.from_pretrained(
|
57 |
"stabilityai/stable-point-aware-3d",
|
58 |
config_name="config.yaml",
|
59 |
weight_name="model.safetensors",
|
|
|
60 |
).eval().to(device)
|
61 |
# ----------------------------
|
62 |
|