Spaces:
Runtime error
Runtime error
Commit
·
4da94a0
1
Parent(s):
f8deb3b
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def main():
|
|
37 |
if st.button("Enter"):
|
38 |
st.write("Top 5 matches using semantic search:")
|
39 |
|
40 |
-
xq =
|
41 |
result = index.query(xq, top_k=5, includeMetadata=True)
|
42 |
|
43 |
Ingredient=[]
|
|
|
37 |
if st.button("Enter"):
|
38 |
st.write("Top 5 matches using semantic search:")
|
39 |
|
40 |
+
xq = loaded_model.encode([input_string]).tolist()
|
41 |
result = index.query(xq, top_k=5, includeMetadata=True)
|
42 |
|
43 |
Ingredient=[]
|