Spaces:
Runtime error
Runtime error
PrabakaranC
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -78,6 +78,8 @@ with st.form("my_form"):
|
|
78 |
to_index = list(top_indices.numpy()[0])
|
79 |
top_items_per_query = [bigDollEmbedding.tolist()[index] for index in to_index]
|
80 |
|
|
|
|
|
81 |
df = pd.DataFrame({"Product":top_items_per_query,"Score":top_values[0]})
|
82 |
df["Product"] = df["Product"].str.replace("search_document:","")
|
83 |
# st.dataframe(df)
|
|
|
78 |
to_index = list(top_indices.numpy()[0])
|
79 |
top_items_per_query = [bigDollEmbedding.tolist()[index] for index in to_index]
|
80 |
|
81 |
+
print(top_values)
|
82 |
+
|
83 |
df = pd.DataFrame({"Product":top_items_per_query,"Score":top_values[0]})
|
84 |
df["Product"] = df["Product"].str.replace("search_document:","")
|
85 |
# st.dataframe(df)
|