环境
# 创建虚拟环境
conda create -n spy python=3.10 -y
conda activate spy
pip install streamlit==1.37.0 openai==1.37.1
git clone https://github.com/sci-m-wang/Spy-Game.git
cd Spy-Game
修改脚本who_is_the_spy.py中的client 部分
if "client" not in state: state.client = OpenAI( api_key="YOUR-API-KEY", base_url="https://api.siliconflow.cn/v1" ) state.model_name = "internlm/internlm2_5-20b-chat" pass
运行
python -m streamlit run who_is_the_spy.py
最终效果