Spaces:
Runtime error
Runtime error
Create launch_vace.py
Browse files- launch_vace.py +17 -0
launch_vace.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
def launch_vace():
|
4 |
+
command = [
|
5 |
+
"python",
|
6 |
+
"gradio/vace.py",
|
7 |
+
"--ckpt_dir",
|
8 |
+
"./Wan2.1-VACE-1.3B"
|
9 |
+
]
|
10 |
+
|
11 |
+
try:
|
12 |
+
subprocess.run(command, check=True)
|
13 |
+
except subprocess.CalledProcessError as e:
|
14 |
+
print(f"An error occurred: {e}")
|
15 |
+
|
16 |
+
if __name__ == "__main__":
|
17 |
+
launch_vace()
|