Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,13 +95,13 @@ else:
|
|
95 |
docs_content = "\n\n".join(
|
96 |
[
|
97 |
f"Doc {i+1}:\n"
|
98 |
-
f"
|
99 |
-
f"
|
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",
|
|
|
95 |
docs_content = "\n\n".join(
|
96 |
[
|
97 |
f"Doc {i+1}:\n"
|
98 |
+
f"Source: {doc.metadata['source']}\n"
|
99 |
+
f"Title: {doc.metadata['title']}\n"
|
|
|
100 |
f"Content: {doc.page_content}\n"
|
101 |
for i, doc in enumerate(used_docs)
|
102 |
]
|
103 |
)
|
104 |
+
|
105 |
with st.sidebar:
|
106 |
st.download_button(
|
107 |
label="Consulted Documents",
|