pvyas96 commited on
Commit
1870468
·
verified ·
1 Parent(s): 5388cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -28,7 +28,9 @@ input_text = st.chat_input("Enter your message:")
28
  if input_text:
29
  # Add the user's message to the conversation history
30
  session_state.conversation_history.append(input_text)
31
- st.chat_message("user", input_text)
 
 
32
 
33
  # Create conversation history string
34
  history_string = "\n".join(session_state.conversation_history)
@@ -44,4 +46,6 @@ if input_text:
44
 
45
  # Add the model's response to the conversation history
46
  session_state.conversation_history.append(response)
47
- st.chat_message("assistant", response)
 
 
 
28
  if input_text:
29
  # Add the user's message to the conversation history
30
  session_state.conversation_history.append(input_text)
31
+
32
+ # Display the user's message
33
+ st.write("**User:**", input_text)
34
 
35
  # Create conversation history string
36
  history_string = "\n".join(session_state.conversation_history)
 
46
 
47
  # Add the model's response to the conversation history
48
  session_state.conversation_history.append(response)
49
+
50
+ # Display the model's response
51
+ st.write("**Assistant:**", response)