Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,13 @@ st.markdown("<h1 style='text-align: center; color: navy;'>ChatMate: Your Profess
|
|
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 |
-
|
29 |
-
|
|
|
30 |
|
31 |
# Function to get response from the model
|
32 |
def getresponse(userInput, api_key):
|
@@ -77,5 +78,6 @@ with container:
|
|
77 |
message(st.session_state['messages'][i], key=str(i) + '_AI')
|
78 |
|
79 |
|
|
|
80 |
|
81 |
|
|
|
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")
|
29 |
+
#if summarise_button:
|
30 |
+
# summarise_placeholder = st.sidebar.write("Nice chatting with you my friend ❤️")
|
31 |
|
32 |
# Function to get response from the model
|
33 |
def getresponse(userInput, api_key):
|
|
|
78 |
message(st.session_state['messages'][i], key=str(i) + '_AI')
|
79 |
|
80 |
|
81 |
+
st.markdown('<i class="fas fa-user-tie"></i> User', unsafe_allow_html=True)
|
82 |
|
83 |
|