Spaces:
Runtime error
Runtime error
import os | |
os.system("python -m pip install -r requirements.txt") | |
os.system("python -m pip install git+https://github.com/MaureenZOU/detectron2-xyz.git") | |
github_user = os.environ.get('GITHUB_USER') | |
github_token = os.environ.get('GITHUB_TOKEN') | |
repo = 'IX-Decoder-Demo' | |
os.system("export GITHUB_USER={}".format(github_user)) | |
os.system("export GITHUB_TOKEN={}".format(github_token)) | |
os.system("git clone https://{}:{}@github.com/{}/{}".format(github_user, github_token, github_user, repo)) | |
cwd0 = os.getcwd() | |
cwd1 = os.path.join(cwd0, 'IX-Decoder-Demo/xdecoder/body/encoder/ops') | |
os.chdir(cwd1) | |
os.system("sh make.sh") | |
os.chdir(cwd0) | |
cwd2 = os.path.join(cwd0, 'IX-Decoder-Demo') | |
os.chdir(cwd2) | |
os.system("python app.py") |