ElvisWang111 commited on
Commit
fe53803
·
verified ·
1 Parent(s): 5e52c91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -129,7 +129,7 @@ def run_app():
129
  type="password",
130
  key="api_key_input",
131
  )
132
-
133
 
134
  if st.button("💾 保存密钥", use_container_width=True, key="save_key"):
135
  # 保存在 utils/.streamlit/secrets.toml
 
129
  type="password",
130
  key="api_key_input",
131
  )
132
+ st.session_state.api_keys[selected] = api_key_input
133
 
134
  if st.button("💾 保存密钥", use_container_width=True, key="save_key"):
135
  # 保存在 utils/.streamlit/secrets.toml