Spaces:
Runtime error
Runtime error
| #%% | |
| import git | |
| import os | |
| import subprocess | |
| subprocess.call("git lfs install", shell=True) | |
| # Clone private repo | |
| git_securet = os.environ["SECRET_GIT"] | |
| git.Git().clone("https://%s@huggingface.co/spaces/qosmoinc/ChatGPT-Composer.git" % git_securet) | |
| # Run! | |
| app_dir = os.path.join(os.getcwd(), "ChatGPT-Composer") | |
| os.chdir(app_dir) | |
| subprocess.call("python app.py", shell=True) | |
| # %% | |