Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,4 +166,10 @@ if prompt := st.chat_input("Enter your prompt here..."):
|
|
| 166 |
if isinstance(full_response, str):
|
| 167 |
st.session_state.messages.append(
|
| 168 |
{"role": "assistant", "content": full_response}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
)
|
|
|
|
| 166 |
if isinstance(full_response, str):
|
| 167 |
st.session_state.messages.append(
|
| 168 |
{"role": "assistant", "content": full_response}
|
| 169 |
+
)
|
| 170 |
+
else:
|
| 171 |
+
# Handle the case where full_response is not a string
|
| 172 |
+
combined_response = "\n".join(str(item) for item in full_response)
|
| 173 |
+
st.session_state.messages.append(
|
| 174 |
+
{"role": "assistant", "content": combined_response}
|
| 175 |
)
|