Spaces:
Running
Running
import subprocess | |
def setup_imaginepy(): | |
#subprocess.run(["git", "clone", "https://github.com/ItsCEED/Imaginepy"]) | |
subprocess.Popen("git clone https://github.com/ItsCEED/Imaginepy && cd Imaginepy && python -m venv env && source env/bin/activate && python setup.py install", shell=True) | |
subprocess.run(["cd", ".."]) | |
setup_imaginepy() | |
subprocess.run(["python", "app.py"]) | |