Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -317,7 +317,6 @@ if query:
|
|
317 |
st.markdown("## π‘ **Final Answer**")
|
318 |
st.success(final_output["final_response"] if final_output["final_response"] else "β οΈ No clear answer found based on retrieved content.")
|
319 |
|
320 |
-
# π **Detailed Output Sections Below**
|
321 |
st.markdown("### π **Detailed Processing Breakdown**")
|
322 |
st.info("Expand the sections below to see retrieved contexts, relevance scores, and other details.")
|
323 |
|
@@ -326,9 +325,8 @@ if query:
|
|
326 |
if isinstance(final_output["relevant_contexts"], list):
|
327 |
for idx, doc in enumerate(final_output["relevant_contexts"], 1):
|
328 |
st.write(f"πΉ **Context {idx}:** {doc}")
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
|
333 |
with st.expander("π **View Relevance Analysis**"):
|
334 |
st.markdown("### π **Context Relevancy Scores & Analysis**")
|
@@ -339,12 +337,8 @@ if query:
|
|
339 |
else:
|
340 |
st.warning("β οΈ No relevance analysis available.")
|
341 |
|
342 |
-
|
343 |
with st.expander("π **View Relevant Context Numbers**"):
|
344 |
st.markdown("### π’ **Context Numbers Used in Processing**")
|
345 |
-
|
346 |
-
st.write(final_output["context_number"])
|
347 |
-
else:
|
348 |
-
st.warning("β οΈ No context numbers available.")
|
349 |
|
350 |
|
|
|
317 |
st.markdown("## π‘ **Final Answer**")
|
318 |
st.success(final_output["final_response"] if final_output["final_response"] else "β οΈ No clear answer found based on retrieved content.")
|
319 |
|
|
|
320 |
st.markdown("### π **Detailed Processing Breakdown**")
|
321 |
st.info("Expand the sections below to see retrieved contexts, relevance scores, and other details.")
|
322 |
|
|
|
325 |
if isinstance(final_output["relevant_contexts"], list):
|
326 |
for idx, doc in enumerate(final_output["relevant_contexts"], 1):
|
327 |
st.write(f"πΉ **Context {idx}:** {doc}")
|
328 |
+
else:
|
329 |
+
st.warning("β οΈ No relevant contexts available.")
|
|
|
330 |
|
331 |
with st.expander("π **View Relevance Analysis**"):
|
332 |
st.markdown("### π **Context Relevancy Scores & Analysis**")
|
|
|
337 |
else:
|
338 |
st.warning("β οΈ No relevance analysis available.")
|
339 |
|
|
|
340 |
with st.expander("π **View Relevant Context Numbers**"):
|
341 |
st.markdown("### π’ **Context Numbers Used in Processing**")
|
342 |
+
st.write(final_output["context_number"])
|
|
|
|
|
|
|
343 |
|
344 |
|