Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,9 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
| 19 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
| 20 |
os.makedirs(TMP_DIR, exist_ok=True)
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
def preprocess_mesh(mesh_prompt):
|
| 23 |
print("Processing mesh")
|
| 24 |
trimesh_mesh = trimesh.load_mesh(mesh_prompt)
|
|
|
|
| 19 |
TMP_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tmp')
|
| 20 |
os.makedirs(TMP_DIR, exist_ok=True)
|
| 21 |
|
| 22 |
+
from transformers.utils.hub import move_cache
|
| 23 |
+
move_cache()
|
| 24 |
+
|
| 25 |
def preprocess_mesh(mesh_prompt):
|
| 26 |
print("Processing mesh")
|
| 27 |
trimesh_mesh = trimesh.load_mesh(mesh_prompt)
|