lorentz commited on
Commit
65e15c9
·
verified ·
1 Parent(s): 3ee7ed6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -20,12 +20,28 @@ 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
 
24
 
25
  # API Keys
26
  # st.sidebar.text_input() will automatically update st.session_state['API_Key'] with the input value whenever the user types into the field.
27
- st.sidebar.title("🔑")
28
- st.session_state['API_Key']= st.sidebar.text_input("Put your OpenAI API Key here please, the system will enter for you automatically.",type="password")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  # summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
31
  #if summarise_button:
 
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;'>
34
+ <li><strong>Intuitive Interface</strong>: Built with Streamlit, ChatMate offers a clean, responsive user experience, allowing for natural dialogue with the AI.</li>
35
+ <li><strong>Advanced NLP</strong>: Incorporating OpenAI's GPT-3.5, the app provides nuanced understanding and generation of human-like text, showcasing the model's impressive capabilities.</li>
36
+ <li><strong>State Management</strong>: Utilizes <code>ConversationChain</code> and <code>ConversationMemory</code> from <code>langchain</code> to preserve the context and flow, ensuring coherent and engaging interactions.</li>
37
+ <li><strong>Python Proficiency</strong>: The app's robust backend, written in Python, reflects a data scientist’s adeptness in programming and system design.</li>
38
+ <li><strong>Secure Interaction</strong>: Streamlit's session state management is used for secure API key handling and user input retention across sessions.</li>
39
+ </ul>
40
+
41
+ ChatMate not only acts as an AI chat partner but also exemplifies the integration of data science skills into real-world applications, positioning itself as a stellar example of AI's potential to revolutionize communication.
42
+ """, unsafe_allow_html=True)
43
+
44
+ #st.session_state['API_Key']= st.sidebar.text_input("Put your OpenAI API Key here please, the system will enter for you automatically.",type="password")
45
 
46
  # summarise_button = st.sidebar.button("Summarise the conversation", key="summarise")
47
  #if summarise_button: