Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -10,11 +10,11 @@ def gen_sentiment(text):
|
|
10 |
return sent_pipe(text)[0]['label']
|
11 |
|
12 |
search_input = st.text_input(
|
13 |
-
label='Enter Your Search Query',value= "What challenges did the business face?", key='search')
|
14 |
|
15 |
top_k = st.sidebar.slider("Number of Top Hits Generated",min_value=1,max_value=5,value=2)
|
16 |
|
17 |
-
window_size = st.sidebar.slider("Number of Sentences Generated in Search Response",min_value=1,max_value=
|
18 |
|
19 |
if search_input:
|
20 |
|
@@ -63,7 +63,7 @@ if search_input:
|
|
63 |
elif label == 'Negative':
|
64 |
tag_list.append((text,label,'#f44336'))
|
65 |
else:
|
66 |
-
tag_list.append((text,label,'#
|
67 |
|
68 |
return tag_list
|
69 |
|
|
|
10 |
return sent_pipe(text)[0]['label']
|
11 |
|
12 |
search_input = st.text_input(
|
13 |
+
label='Enter Your Search Query',value= "What key challenges did the business face?", key='search')
|
14 |
|
15 |
top_k = st.sidebar.slider("Number of Top Hits Generated",min_value=1,max_value=5,value=2)
|
16 |
|
17 |
+
window_size = st.sidebar.slider("Number of Sentences Generated in Search Response",min_value=1,max_value=7,value=3)
|
18 |
|
19 |
if search_input:
|
20 |
|
|
|
63 |
elif label == 'Negative':
|
64 |
tag_list.append((text,label,'#f44336'))
|
65 |
else:
|
66 |
+
tag_list.append((text,label,'#000000'))
|
67 |
|
68 |
return tag_list
|
69 |
|