Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,10 +95,10 @@ if pc:
|
|
| 95 |
include_metadata=True
|
| 96 |
)
|
| 97 |
|
| 98 |
-
st.write("
|
| 99 |
for match in results.matches:
|
| 100 |
st.markdown(f"Score: {match.score:.4f}")
|
| 101 |
-
st.write(f"Answer:{match.metadata.get('context', 'No context available.')}")
|
| 102 |
st.write("---")
|
| 103 |
else:
|
| 104 |
st.error("Please enter a query and ensure the index is initialized.")
|
|
|
|
| 95 |
include_metadata=True
|
| 96 |
)
|
| 97 |
|
| 98 |
+
st.write("Results:")
|
| 99 |
for match in results.matches:
|
| 100 |
st.markdown(f"Score: {match.score:.4f}")
|
| 101 |
+
st.write(f"Answer: {match.metadata.get('context', 'No context available.')}")
|
| 102 |
st.write("---")
|
| 103 |
else:
|
| 104 |
st.error("Please enter a query and ensure the index is initialized.")
|