Spaces:
Runtime error
Runtime error
File size: 722 Bytes
a86817c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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") |