Spaces:
Runtime error
Runtime error
File size: 417 Bytes
7a82ea8 5101d82 9a30084 5101d82 7a82ea8 5101d82 9a30084 5101d82 9a30084 5101d82 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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(["python", "run/demo_rag_langchain_all.py"], check=True) |