Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,14 +93,15 @@ else:
|
|
93 |
message_placeholder.markdown(full_response)
|
94 |
if used_docs :
|
95 |
docs_content = "\n\n".join(
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
104 |
with st.sidebar:
|
105 |
st.download_button(
|
106 |
label="Consulted Documents",
|
|
|
93 |
message_placeholder.markdown(full_response)
|
94 |
if used_docs :
|
95 |
docs_content = "\n\n".join(
|
96 |
+
[
|
97 |
+
f"Doc {i+1}:\n"
|
98 |
+
f"Description: {doc.metadata.get('Description', 'N/A')}\n"
|
99 |
+
f"Patient: {doc.metadata.get('Patient', 'N/A')}\n"
|
100 |
+
f"Doctor: {doc.metadata.get('Doctor', 'N/A')}\n"
|
101 |
+
f"Content: {doc.page_content}\n"
|
102 |
+
for i, doc in enumerate(used_docs)
|
103 |
+
]
|
104 |
+
)
|
105 |
with st.sidebar:
|
106 |
st.download_button(
|
107 |
label="Consulted Documents",
|