Joshua Sundance Bailey
commited on
Commit
·
9bf9004
1
Parent(s):
1989232
fix
Browse files
langchain-streamlit-demo/app.py
CHANGED
@@ -428,14 +428,14 @@ if st.session_state.llm:
|
|
428 |
answer_piece = f"{whitespace}**A:** {qap.answer}"
|
429 |
return f"{question_piece}\n{answer_piece}"
|
430 |
|
431 |
-
|
432 |
[
|
433 |
_to_str(idx, qap)
|
434 |
for idx, qap in enumerate(results, start=1)
|
435 |
],
|
436 |
)
|
437 |
|
438 |
-
st.markdown(
|
439 |
|
440 |
else:
|
441 |
st_handler = StreamlitCallbackHandler(st.container())
|
|
|
428 |
answer_piece = f"{whitespace}**A:** {qap.answer}"
|
429 |
return f"{question_piece}\n{answer_piece}"
|
430 |
|
431 |
+
full_response = "\n\n".join(
|
432 |
[
|
433 |
_to_str(idx, qap)
|
434 |
for idx, qap in enumerate(results, start=1)
|
435 |
],
|
436 |
)
|
437 |
|
438 |
+
st.markdown(full_response)
|
439 |
|
440 |
else:
|
441 |
st_handler = StreamlitCallbackHandler(st.container())
|