Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Jan Mühlnikel
commited on
Commit
•
09cc137
1
Parent(s):
343d08b
adjusted semantic search
Browse files- functions/semantic_search.py +1 -1
- similarity_page.py +1 -1
functions/semantic_search.py
CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
import pandas as pd
|
6 |
|
7 |
-
def search(query, model, embeddings, filtered_df, top_x=
|
8 |
|
9 |
filtered_df_indecies_list = filtered_df.index
|
10 |
filtered_embeddings = embeddings[filtered_df_indecies_list]
|
|
|
4 |
from sentence_transformers import SentenceTransformer
|
5 |
import pandas as pd
|
6 |
|
7 |
+
def search(query, model, embeddings, filtered_df, top_x=20):
|
8 |
|
9 |
filtered_df_indecies_list = filtered_df.index
|
10 |
filtered_embeddings = embeddings[filtered_df_indecies_list]
|
similarity_page.py
CHANGED
@@ -239,7 +239,7 @@ def show_multi_matching_page():
|
|
239 |
del p1_df, p2_df
|
240 |
else:
|
241 |
st.write("-----")
|
242 |
-
col1, col2, col3 = st.columns([
|
243 |
with col2:
|
244 |
st.write(" ")
|
245 |
st.markdown(" There are no results for the applied filter. Try another filter!")
|
|
|
239 |
del p1_df, p2_df
|
240 |
else:
|
241 |
st.write("-----")
|
242 |
+
col1, col2, col3 = st.columns([2, 1, 2])
|
243 |
with col2:
|
244 |
st.write(" ")
|
245 |
st.markdown(" There are no results for the applied filter. Try another filter!")
|