Spaces:
Runtime error
Runtime error
File size: 450 Bytes
5b79720 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#%%
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)
app_dir = os.path.join(os.getcwd(), "ChatGPT-Composer")
print(app_dir)
# Run!
os.chdir(app_dir)
subprocess.call("python app.py", shell=True)
#exec(open("./ChatGPT-Composer/app.py").read())
# %%
|