ryanrwatkins commited on
Commit
64d683f
1 Parent(s): 05d9730

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -827,7 +827,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
827
  if selected_document is not None:
828
  # Remove the "/home/user/app/" part from the document name
829
  modified_source = selected_document.metadata['source'].replace('/home/user/app/', '').replace('.pdf', '')
830
- source_info = f"\n\n**Lead source:** {modified_source}, **Page:** {selected_document.metadata['page']} \n**Note:** Other sources were also used in crafting the response."
831
  else:
832
  source_info = "Lead source: not determined"
833
 
 
827
  if selected_document is not None:
828
  # Remove the "/home/user/app/" part from the document name
829
  modified_source = selected_document.metadata['source'].replace('/home/user/app/', '').replace('.pdf', '')
830
+ source_info = f"\n**Lead source:** {modified_source}, **Page:** {selected_document.metadata['page']} "
831
  else:
832
  source_info = "Lead source: not determined"
833