Spaces:
Runtime error
Runtime error
Result index changed to represent order for consistency.
Browse files
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 |
-
|
|
|
|
|
|
|
|
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))
|