Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -161,8 +161,6 @@ selected_api = st.sidebar.selectbox("Select API Key", ["OpenAI", "Google API"])
|
|
161 |
# Input field to set the selected API key
|
162 |
api_key = st.sidebar.text_input(f"Enter {selected_api} Key:")
|
163 |
|
164 |
-
# Button to update the selected API key
|
165 |
-
session_state = get_session_state()
|
166 |
update_button = st.sidebar.button(f"Update {selected_api} Key", on_click=update_api_key, args=(selected_api, api_key))
|
167 |
|
168 |
|
|
|
161 |
# Input field to set the selected API key
|
162 |
api_key = st.sidebar.text_input(f"Enter {selected_api} Key:")
|
163 |
|
|
|
|
|
164 |
update_button = st.sidebar.button(f"Update {selected_api} Key", on_click=update_api_key, args=(selected_api, api_key))
|
165 |
|
166 |
|