KushwanthK commited on
Commit
6af21f5
·
verified ·
1 Parent(s): bb8243d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -317,9 +317,10 @@ def chat_actions():
317
  text_to_highlight = context_text.strip()
318
 
319
  if "The question is out of context" not in result:
 
320
  display_highlighted_pdf(file_path, result, sources)
321
  else:
322
- st.error("The question is out of context. Pages not found.")
323
 
324
  with st.sidebar:
325
  option = st.selectbox(
 
317
  text_to_highlight = context_text.strip()
318
 
319
  if "The question is out of context" not in result:
320
+ st.success("We found some helpful pages related to your question. Please refer to the highlighted sections below.")
321
  display_highlighted_pdf(file_path, result, sources)
322
  else:
323
+ st.error("Unfortunately, the question is out of context, and we couldn't find relevant pages for you.")
324
 
325
  with st.sidebar:
326
  option = st.selectbox(