naotokui's picture
added: requirements
5b79720
raw history blame
No virus
450 Bytes
#%%
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())
# %%