Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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 |
-
|
|
|
|
|
|
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)
|