tianji-prompt / app.py
sanbu's picture
fix
65261ba
raw
history blame
412 Bytes
import os
import subprocess
repo_url = "https://github.com/SocialAI-tianji/Tianji.git"
clone_dir = "Tianji"
print("正在克隆 Tianji 仓库...")
subprocess.run(["git", "clone", repo_url], check=True)
print("正在安装依赖...")
os.chdir(clone_dir)
subprocess.run(["pip", "install", "-e", "."], check=True)
print("正在运行示例...")
subprocess.run(["cd run &&","python demo_prompt.py"], check=True)