Spaces:
Sleeping
Sleeping
Jesus Sanchez commited on
Commit ·
e395a4e
1
Parent(s): deafae4
use st.write
Browse files
chat.py
CHANGED
|
@@ -25,7 +25,7 @@ class Chat:
|
|
| 25 |
messages = zip(st.session_state[PROMPT_LABEL], st.session_state[RESPONSE_LABEL])
|
| 26 |
for prompt, (response, on_render) in messages:
|
| 27 |
with st.chat_message("user"):
|
| 28 |
-
st.
|
| 29 |
with st.chat_message("assistant"):
|
| 30 |
on_render(response)
|
| 31 |
|
|
@@ -36,7 +36,7 @@ class Chat:
|
|
| 36 |
st.session_state[RESPONSE_LABEL].append((response, on_render))
|
| 37 |
|
| 38 |
with st.chat_message("user"):
|
| 39 |
-
st.
|
| 40 |
|
| 41 |
with st.chat_message("assistant"):
|
| 42 |
on_render(response)
|
|
|
|
| 25 |
messages = zip(st.session_state[PROMPT_LABEL], st.session_state[RESPONSE_LABEL])
|
| 26 |
for prompt, (response, on_render) in messages:
|
| 27 |
with st.chat_message("user"):
|
| 28 |
+
st.write(prompt)
|
| 29 |
with st.chat_message("assistant"):
|
| 30 |
on_render(response)
|
| 31 |
|
|
|
|
| 36 |
st.session_state[RESPONSE_LABEL].append((response, on_render))
|
| 37 |
|
| 38 |
with st.chat_message("user"):
|
| 39 |
+
st.write(prompt)
|
| 40 |
|
| 41 |
with st.chat_message("assistant"):
|
| 42 |
on_render(response)
|