Update app.py
Browse files
app.py
CHANGED
@@ -16,19 +16,15 @@ if 'API_Key' not in st.session_state:
|
|
16 |
st.session_state['API_Key'] =''
|
17 |
|
18 |
# Setting page title and header
|
19 |
-
st.set_page_config(page_title="
|
20 |
st.markdown("<h1 style='text-align: center;'>How can I assist you? </h1>", unsafe_allow_html=True)
|
21 |
|
22 |
|
23 |
st.sidebar.title("😎")
|
24 |
-
st.session_state['API_Key']= st.sidebar.text_input("
|
25 |
summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|
26 |
if summarise_button:
|
27 |
-
summarise_placeholder = st.sidebar.write("Nice chatting with you my friend
|
28 |
-
#summarise_placeholder.write("Nice chatting with you my friend ❤️:\n\n"+st.session_state['conversation'].memory.buffer)
|
29 |
-
|
30 |
-
#import os
|
31 |
-
#os.environ["OPENAI_API_KEY"] = "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"
|
32 |
|
33 |
def getresponse(userInput, api_key):
|
34 |
|
|
|
16 |
st.session_state['API_Key'] =''
|
17 |
|
18 |
# Setting page title and header
|
19 |
+
st.set_page_config(page_title="ChatMate: Your Professional AI Conversation Partner", page_icon=":robot_face:")
|
20 |
st.markdown("<h1 style='text-align: center;'>How can I assist you? </h1>", unsafe_allow_html=True)
|
21 |
|
22 |
|
23 |
st.sidebar.title("😎")
|
24 |
+
st.session_state['API_Key']= st.sidebar.text_input("Enter your OpenAI API Key here please.",type="password")
|
25 |
summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
|
26 |
if summarise_button:
|
27 |
+
summarise_placeholder = st.sidebar.write("Nice chatting with you my friend ❤️")
|
|
|
|
|
|
|
|
|
28 |
|
29 |
def getresponse(userInput, api_key):
|
30 |
|