dh-mc commited on
Commit
a6081bd
·
1 Parent(s): a8b8d0c

fixed page number display error

Browse files
Files changed (1) hide show
  1. 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: "