Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,11 +6,15 @@ import tempfile
|
|
| 6 |
import shutil
|
| 7 |
import subprocess
|
| 8 |
import spaces
|
|
|
|
| 9 |
|
| 10 |
# --- Configuration ---
|
| 11 |
# Path to the cloned UniRig repository directory within the Space
|
| 12 |
UNIRIG_REPO_DIR = os.path.join(os.path.dirname(__file__), "UniRig")
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# Path to the setup script
|
| 15 |
SETUP_SCRIPT = os.path.join(os.path.dirname(__file__), "setup_blender.sh")
|
| 16 |
|
|
|
|
| 6 |
import shutil
|
| 7 |
import subprocess
|
| 8 |
import spaces
|
| 9 |
+
from typing import Any, Dict, Union
|
| 10 |
|
| 11 |
# --- Configuration ---
|
| 12 |
# Path to the cloned UniRig repository directory within the Space
|
| 13 |
UNIRIG_REPO_DIR = os.path.join(os.path.dirname(__file__), "UniRig")
|
| 14 |
|
| 15 |
+
# Path to the Blender Python site-packages
|
| 16 |
+
BLENDER_PYTHON_PATH = "/opt/blender-4.2.0-linux-x64/4.2/python/lib/python3.11/site-packages"
|
| 17 |
+
|
| 18 |
# Path to the setup script
|
| 19 |
SETUP_SCRIPT = os.path.join(os.path.dirname(__file__), "setup_blender.sh")
|
| 20 |
|