matijap commited on
Commit
999e0ba
1 Parent(s): 7aa1b63

Result index changed to represent order for consistency.

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -46,4 +46,7 @@ query = st.text_input("Your math query:", value="Jesu li strukture koje su eleme
46
  if query:
47
  D, I = vector_search([query], model, knowledge_index, num_results=5)
48
  result = df[["Speech", "start_link"]].iloc[I[0]]
49
- st.write(show_df_as_markdown(result), unsafe_allow_html=True)
 
 
 
 
46
  if query:
47
  D, I = vector_search([query], model, knowledge_index, num_results=5)
48
  result = df[["Speech", "start_link"]].iloc[I[0]]
49
+ result.index = list(range(1, len(result)+1))
50
+ speeches = result["Speech"].tolist()
51
+ links = result["start_link"].tolist()
52
+ st.write(show_df_as_markdown(result))