Spaces:
Running
Running
Update app.py
Browse files
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
|