fix search function
Browse files
main.py
CHANGED
|
@@ -58,7 +58,7 @@ with st.spinner("Loading Embedding Model..."):
|
|
| 58 |
|
| 59 |
if st.button("Search"):
|
| 60 |
with st.spinner("Searching..."):
|
| 61 |
-
results =
|
| 62 |
|
| 63 |
for res in results["matches"]:
|
| 64 |
st.write(f"{res['id']} - confidence: {res['score']:.2f}")
|
|
|
|
| 58 |
|
| 59 |
if st.button("Search"):
|
| 60 |
with st.spinner("Searching..."):
|
| 61 |
+
results = search(text)
|
| 62 |
|
| 63 |
for res in results["matches"]:
|
| 64 |
st.write(f"{res['id']} - confidence: {res['score']:.2f}")
|