wop commited on
Commit
5a84099
·
verified ·
1 Parent(s): 93d9be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
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
  )