Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files111 unmodified lines112113114115116117118119120121122123124111 unmodified linesuser_api_key = st.text_input("🔓 Unlock GPT-4o (Enter API Key)",type="password",help="Enter your OpenAI API key to access GPT-4o. Press Enter to apply.")if user_api_key:st.session_state.user_openai_key = user_api_keyst.caption("✅ Key Active")else:st.session_state.user_openai_key = None# 3. DYNAMICALLY ADD GPT-4o TO THE LIST# If Admin OR if they just entered a key, show the option111 unmodified lines112113114115116117118119120121122123124125126127111 unmodified linesuser_api_key = st.text_input("🔓 Unlock GPT-4o (Enter API Key)",type="password",help="Enter your OpenAI API key to access GPT-4o. Press Enter to apply.",key=f"user_key_{st.session_state.username}")if user_api_key:st.session_state.user_openai_key = user_api_keyst.caption("✅ Key Active")else:st.session_state.user_openai_key = Noneelse:st.session_state.user_openai_key = None# 3. DYNAMICALLY ADD GPT-4o TO THE LIST# If Admin OR if they just entered a key, show the option
src/app.py+4-1