Spaces:
Running
Running
fixed page number display error
Browse files- app_modules/utils.py +1 -1
app_modules/utils.py
CHANGED
@@ -75,7 +75,7 @@ def print_llm_response(llm_response):
|
|
75 |
for source in source_documents:
|
76 |
metadata = source["metadata"] if "metadata" in source else source.metadata
|
77 |
if "page" in metadata:
|
78 |
-
print(f" Page: {metadata['page']}", end="")
|
79 |
|
80 |
print(
|
81 |
" Source: "
|
|
|
75 |
for source in source_documents:
|
76 |
metadata = source["metadata"] if "metadata" in source else source.metadata
|
77 |
if "page" in metadata:
|
78 |
+
print(f" Page: {metadata['page'] + 1}", end="")
|
79 |
|
80 |
print(
|
81 |
" Source: "
|