Spaces:
Running
Running
imseldrith
commited on
Commit
·
3d61537
1
Parent(s):
038f008
Update run.py
Browse files
run.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import subprocess
|
|
|
2 |
|
3 |
def setup_imaginepy():
|
4 |
-
|
5 |
-
subprocess.Popen("
|
6 |
-
|
7 |
|
8 |
setup_imaginepy()
|
9 |
subprocess.run(["python", "app.py"])
|
|
|
1 |
import subprocess
|
2 |
+
import os
|
3 |
|
4 |
def setup_imaginepy():
|
5 |
+
subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"])
|
6 |
+
subprocess.Popen("cd Imaginepy && python -m venv env && source env/bin/activate && python setup.py install", shell=True)
|
7 |
+
os.chdir("..")
|
8 |
|
9 |
setup_imaginepy()
|
10 |
subprocess.run(["python", "app.py"])
|