shrut123 commited on
Commit
e740c3d
1 Parent(s): badd3d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,10 +95,10 @@ if pc:
95
  include_metadata=True
96
  )
97
 
98
- st.write("### Search 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.")
 
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.")