Spaces:
Sleeping
Sleeping
Clean Output
Browse files
app.py
CHANGED
|
@@ -78,10 +78,8 @@ def main():
|
|
| 78 |
if top_results:
|
| 79 |
st.subheader(f"Top {len(top_results)} Results:")
|
| 80 |
for i, result in enumerate(top_results, 1):
|
| 81 |
-
st.
|
| 82 |
-
|
| 83 |
-
st.write(f" Start Index in Original Context: {result['chunk_start'] + result['start']}")
|
| 84 |
-
st.write(f" Chunk Index: {result['chunk_index']}")
|
| 85 |
|
| 86 |
st.subheader("Context with Highlighted Answers:")
|
| 87 |
highlighted_context = context
|
|
|
|
| 78 |
if top_results:
|
| 79 |
st.subheader(f"Top {len(top_results)} Results:")
|
| 80 |
for i, result in enumerate(top_results, 1):
|
| 81 |
+
st.markdown(f"{i}. Answer: **{result['answer']}** (Confidence: {result['score']:.4f})")
|
| 82 |
+
|
|
|
|
|
|
|
| 83 |
|
| 84 |
st.subheader("Context with Highlighted Answers:")
|
| 85 |
highlighted_context = context
|