lorentz commited on
Commit
8a9ec3f
·
verified ·
1 Parent(s): 65e15c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -20,14 +20,14 @@ st.set_page_config(page_title="ChatMate: Your Professional AI Conversation Partn
20
  st.markdown("<h1 style='text-align: center; color: navy;'>ChatMate</h1>", unsafe_allow_html=True)
21
  st.markdown("<h4 style='text-align: center;'>A cutting-edge language model</h4>", unsafe_allow_html=True)
22
  st.markdown("<p style='text-align: center;'>I am capable of recalling previous parts of our conversation, such as remembering your name if you share it with me.</p>", unsafe_allow_html=True)
23
- st.session_state['API_Key']= st.sidebar.text_input("First, to get it work, put your OpenAI API Key here please, the system will enter for you automatically.",type="password")
24
 
25
 
26
 
27
  # API Keys
28
  # st.sidebar.text_input() will automatically update st.session_state['API_Key'] with the input value whenever the user types into the field.
29
  st.sidebar.title("ChatMate")
30
- st.markdown("""
31
  ChatMate is an advanced conversational AI interface, expertly crafted to demonstrate the fusion of Streamlit's user-friendly design and OpenAI's powerful GPT-3.5 model. Here are its highlights:
32
 
33
  <ul style='text-align: left;'>
@@ -47,6 +47,8 @@ ChatMate not only acts as an AI chat partner but also exemplifies the integratio
47
  #if summarise_button:
48
  # summarise_placeholder = st.sidebar.write("Nice chatting with you my friend ❤️")
49
 
 
 
50
  # Function to get response from the model
51
  def getresponse(userInput, api_key):
52
 
 
20
  st.markdown("<h1 style='text-align: center; color: navy;'>ChatMate</h1>", unsafe_allow_html=True)
21
  st.markdown("<h4 style='text-align: center;'>A cutting-edge language model</h4>", unsafe_allow_html=True)
22
  st.markdown("<p style='text-align: center;'>I am capable of recalling previous parts of our conversation, such as remembering your name if you share it with me.</p>", unsafe_allow_html=True)
23
+ st.session_state['API_Key']= st.text_input("First, to get it work, put your OpenAI API Key here please, the system will enter for you automatically.",type="password")
24
 
25
 
26
 
27
  # API Keys
28
  # st.sidebar.text_input() will automatically update st.session_state['API_Key'] with the input value whenever the user types into the field.
29
  st.sidebar.title("ChatMate")
30
+ st.sidebar.markdown("""
31
  ChatMate is an advanced conversational AI interface, expertly crafted to demonstrate the fusion of Streamlit's user-friendly design and OpenAI's powerful GPT-3.5 model. Here are its highlights:
32
 
33
  <ul style='text-align: left;'>
 
47
  #if summarise_button:
48
  # summarise_placeholder = st.sidebar.write("Nice chatting with you my friend ❤️")
49
 
50
+
51
+
52
  # Function to get response from the model
53
  def getresponse(userInput, api_key):
54