Update app.py
Browse filesAdd displaying response text as well.
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 |
|