Spaces:
Sleeping
Sleeping
PrabakaranC
commited on
Commit
•
5f1d89a
1
Parent(s):
f27dba6
Update app.py
Browse files
app.py
CHANGED
@@ -63,14 +63,12 @@ docEmbedding = torch.Tensor(np.load("./prodBigDollEmbeddings.npy"))
|
|
63 |
|
64 |
with st.form("my_form"):
|
65 |
query_input = st.text_input("query your product")
|
66 |
-
|
67 |
-
|
68 |
-
sample_products = ["a","b","c"]
|
69 |
submitted = st.form_submit_button("Submit")
|
|
|
|
|
70 |
|
71 |
if submitted:
|
72 |
queryEmbedding = get_searchQueryEmbedding(query_input)
|
73 |
-
Matry_dim = st.slider('Matryoshka Dimension', 64, 768, 64)
|
74 |
query_embedNorm,loaded_embedNorm = get_normEmbed(queryEmbedding,docEmbedding,Matry_dim)
|
75 |
|
76 |
similarity_scores = torch.matmul(query_embedNorm,loaded_embedNorm.T)
|
|
|
63 |
|
64 |
with st.form("my_form"):
|
65 |
query_input = st.text_input("query your product")
|
|
|
|
|
|
|
66 |
submitted = st.form_submit_button("Submit")
|
67 |
+
Matry_dim = st.slider('Matryoshka Dimension', 64, 768, 64)
|
68 |
+
|
69 |
|
70 |
if submitted:
|
71 |
queryEmbedding = get_searchQueryEmbedding(query_input)
|
|
|
72 |
query_embedNorm,loaded_embedNorm = get_normEmbed(queryEmbedding,docEmbedding,Matry_dim)
|
73 |
|
74 |
similarity_scores = torch.matmul(query_embedNorm,loaded_embedNorm.T)
|