Spaces:
Sleeping
Sleeping
Update agent_api_web_demo.py
Browse files- agent_api_web_demo.py +1 -1
agent_api_web_demo.py
CHANGED
@@ -85,7 +85,7 @@ class StreamlitUI:
|
|
85 |
|
86 |
def initialize_chatbot(self, model_name, api_base, plugin_action):
|
87 |
"""初始化 GPTAPI 实例作为 chatbot。"""
|
88 |
-
token = st.secrets["
|
89 |
if not token:
|
90 |
st.error("未检测到环境变量 `token`,请设置环境变量,例如 `export token='your_token_here'` 后重新运行 X﹏X")
|
91 |
st.stop() # 停止运行应用
|
|
|
85 |
|
86 |
def initialize_chatbot(self, model_name, api_base, plugin_action):
|
87 |
"""初始化 GPTAPI 实例作为 chatbot。"""
|
88 |
+
token = st.secrets["puyu_token"]
|
89 |
if not token:
|
90 |
st.error("未检测到环境变量 `token`,请设置环境变量,例如 `export token='your_token_here'` 后重新运行 X﹏X")
|
91 |
st.stop() # 停止运行应用
|