Spaces:
Paused
Paused
make path absolute
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import os
|
|
| 4 |
import torch
|
| 5 |
import trimesh
|
| 6 |
import sys
|
| 7 |
-
sys.path.append("cube")
|
| 8 |
from cube3d.inference.engine import EngineFast
|
| 9 |
from pathlib import Path
|
| 10 |
import uuid
|
|
@@ -29,7 +29,7 @@ def gen_save_folder(max_size=200):
|
|
| 29 |
|
| 30 |
return new_folder
|
| 31 |
|
| 32 |
-
def handle_text_prompt(input_prompt
|
| 33 |
mesh_v_f = GLOBAL_STATE["engine_fast"].t2s([input_prompt], use_kv_cache=True, resolution_base=8.0)
|
| 34 |
# save output
|
| 35 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|
|
|
|
| 4 |
import torch
|
| 5 |
import trimesh
|
| 6 |
import sys
|
| 7 |
+
sys.path.append("/home/user/app/cube")
|
| 8 |
from cube3d.inference.engine import EngineFast
|
| 9 |
from pathlib import Path
|
| 10 |
import uuid
|
|
|
|
| 29 |
|
| 30 |
return new_folder
|
| 31 |
|
| 32 |
+
def handle_text_prompt(input_prompt):
|
| 33 |
mesh_v_f = GLOBAL_STATE["engine_fast"].t2s([input_prompt], use_kv_cache=True, resolution_base=8.0)
|
| 34 |
# save output
|
| 35 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|