Update utils.py
Browse files
utils.py
CHANGED
@@ -791,7 +791,7 @@ def extract_document_info(documents):
|
|
791 |
# Extract the filename from the path to use as the title
|
792 |
filename = os.path.basename(doc.metadata.get("path", ""))
|
793 |
title = filename if filename else "Keine Überschrift"
|
794 |
-
|
795 |
# Determine the document type and adjust the path accordingly
|
796 |
d_link = download_link(doc)
|
797 |
"""
|
|
|
791 |
# Extract the filename from the path to use as the title
|
792 |
filename = os.path.basename(doc.metadata.get("path", ""))
|
793 |
title = filename if filename else "Keine Überschrift"
|
794 |
+
doc_path = doc.metadata.get("path", "")
|
795 |
# Determine the document type and adjust the path accordingly
|
796 |
d_link = download_link(doc)
|
797 |
"""
|