Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
2128820
1
Parent(s):
faaf8be
glb webp
Browse files
app.py
CHANGED
|
@@ -546,7 +546,7 @@ def extract_glb(
|
|
| 546 |
timestamp = now.strftime("%Y-%m-%dT%H%M%S") + f".{now.microsecond // 1000:03d}"
|
| 547 |
os.makedirs(user_dir, exist_ok=True)
|
| 548 |
glb_path = os.path.join(user_dir, f'sample_{timestamp}.glb')
|
| 549 |
-
glb.export(glb_path)
|
| 550 |
torch.cuda.empty_cache()
|
| 551 |
return glb_path, glb_path
|
| 552 |
|
|
|
|
| 546 |
timestamp = now.strftime("%Y-%m-%dT%H%M%S") + f".{now.microsecond // 1000:03d}"
|
| 547 |
os.makedirs(user_dir, exist_ok=True)
|
| 548 |
glb_path = os.path.join(user_dir, f'sample_{timestamp}.glb')
|
| 549 |
+
glb.export(glb_path, extension_webp=True)
|
| 550 |
torch.cuda.empty_cache()
|
| 551 |
return glb_path, glb_path
|
| 552 |
|