Spaces:
Running on Zero
Running on Zero
chmod harness tools
Browse files
app.py
CHANGED
|
@@ -29,6 +29,8 @@ from transformers import AutoModelForImageTextToText, AutoProcessor, TextIterato
|
|
| 29 |
ROOT = Path(__file__).resolve().parent
|
| 30 |
HARNESS_ROOT = ROOT / "harness"
|
| 31 |
sys.path.insert(0, str(HARNESS_ROOT))
|
|
|
|
|
|
|
| 32 |
|
| 33 |
from video_coder_harness.blender_exec import execute as blender_execute # noqa: E402
|
| 34 |
from video_coder_harness.guard import ( # noqa: E402
|
|
|
|
| 29 |
ROOT = Path(__file__).resolve().parent
|
| 30 |
HARNESS_ROOT = ROOT / "harness"
|
| 31 |
sys.path.insert(0, str(HARNESS_ROOT))
|
| 32 |
+
for _tool in (HARNESS_ROOT / "bin").iterdir(): # the Hub does not keep the executable bit
|
| 33 |
+
_tool.chmod(0o755)
|
| 34 |
|
| 35 |
from video_coder_harness.blender_exec import execute as blender_execute # noqa: E402
|
| 36 |
from video_coder_harness.guard import ( # noqa: E402
|