Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ st.set_page_config(page_title="ChatMate: Your Professional AI Conversation Partn
|
|
20 |
st.markdown("<h1 style='text-align: center; color: navy;'>ChatMate: Your Professional AI Partner</h1>", unsafe_allow_html=True)
|
21 |
st.markdown("<h4 style='text-align: center;'>Interact with a cutting-edge language model</h4>", unsafe_allow_html=True)
|
22 |
|
23 |
-
|
|
|
24 |
st.sidebar.title("🔑")
|
25 |
-
|
26 |
st.session_state['API_Key']= st.sidebar.text_input("Enter your OpenAI API Key here please.",type="password")
|
27 |
|
28 |
# summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|
|
|
20 |
st.markdown("<h1 style='text-align: center; color: navy;'>ChatMate: Your Professional AI Partner</h1>", unsafe_allow_html=True)
|
21 |
st.markdown("<h4 style='text-align: center;'>Interact with a cutting-edge language model</h4>", unsafe_allow_html=True)
|
22 |
|
23 |
+
# API Keys
|
24 |
+
# st.sidebar.text_input() will automatically update st.session_state['API_Key'] with the input value whenever the user types into the field.
|
25 |
st.sidebar.title("🔑")
|
|
|
26 |
st.session_state['API_Key']= st.sidebar.text_input("Enter your OpenAI API Key here please.",type="password")
|
27 |
|
28 |
# summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|