Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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("
|
| 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(
|