Spaces:
Paused
Paused
Akash Garg
commited on
Commit
·
ff14b75
1
Parent(s):
de83d86
printing prompts
Browse files
app.py
CHANGED
|
@@ -9,10 +9,10 @@ from pathlib import Path
|
|
| 9 |
pathdir = Path(__file__).parent / 'cube'
|
| 10 |
sys.path.append(pathdir.as_posix())
|
| 11 |
|
| 12 |
-
print(__file__)
|
| 13 |
-
print(os.listdir())
|
| 14 |
-
print(os.listdir('cube'))
|
| 15 |
-
print(pathdir.as_posix())
|
| 16 |
|
| 17 |
from cube3d.inference.engine import EngineFast, Engine
|
| 18 |
from pathlib import Path
|
|
@@ -40,6 +40,7 @@ def gen_save_folder(max_size=200):
|
|
| 40 |
return new_folder
|
| 41 |
|
| 42 |
def handle_text_prompt(input_prompt):
|
|
|
|
| 43 |
mesh_v_f = GLOBAL_STATE["engine_fast"].t2s([input_prompt], use_kv_cache=True, resolution_base=8.0)
|
| 44 |
# save output
|
| 45 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|
|
|
|
| 9 |
pathdir = Path(__file__).parent / 'cube'
|
| 10 |
sys.path.append(pathdir.as_posix())
|
| 11 |
|
| 12 |
+
# print(__file__)
|
| 13 |
+
# print(os.listdir())
|
| 14 |
+
# print(os.listdir('cube'))
|
| 15 |
+
# print(pathdir.as_posix())
|
| 16 |
|
| 17 |
from cube3d.inference.engine import EngineFast, Engine
|
| 18 |
from pathlib import Path
|
|
|
|
| 40 |
return new_folder
|
| 41 |
|
| 42 |
def handle_text_prompt(input_prompt):
|
| 43 |
+
print(f"prompt: {input_prompt}")
|
| 44 |
mesh_v_f = GLOBAL_STATE["engine_fast"].t2s([input_prompt], use_kv_cache=True, resolution_base=8.0)
|
| 45 |
# save output
|
| 46 |
vertices, faces = mesh_v_f[0][0], mesh_v_f[0][1]
|