m96tkmok commited on
Commit
e57f0bd
·
verified ·
1 Parent(s): 0202e68

Update app.py

Browse files

Add displaying response text as well.

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ if st.button("Send"):
55
  if user_message: # Check if user has entered a message
56
  # Get the response from the model
57
  response = respond(user_message, st.session_state['chat_history'])
58
-
 
59
  # Add user message and model response to history
60
  st.session_state['chat_history'].append((user_message, response))
61
 
 
55
  if user_message: # Check if user has entered a message
56
  # Get the response from the model
57
  response = respond(user_message, st.session_state['chat_history'])
58
+ st.write(f"**🧠 Assistant**: {response}")
59
+
60
  # Add user message and model response to history
61
  st.session_state['chat_history'].append((user_message, response))
62