Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -13,7 +13,7 @@ top_k = st.sidebar.slider("Number of Top Hits Generated",min_value=1,max_value=5
|
|
13 |
window_size = st.sidebar.slider("Number of Sentences Generated in Search Response",min_value=1,max_value=5,value=3)
|
14 |
|
15 |
if "sen_df" not in st.session_state:
|
16 |
-
st.session_state['
|
17 |
|
18 |
if "earnings_passages" not in st.session_state:
|
19 |
st.session_state["earnings_passages"] = ''
|
@@ -21,7 +21,7 @@ if "earnings_passages" not in st.session_state:
|
|
21 |
if st.session_state["sen_df"] or st.session_state["earnings_passages"]:
|
22 |
|
23 |
## Save to a dataframe for ease of visualization
|
24 |
-
sen_df = st.session_state['
|
25 |
|
26 |
passages = preprocess_plain_text(st.session_state['earnings_passages'],window_size=window_size)
|
27 |
|
|
|
13 |
window_size = st.sidebar.slider("Number of Sentences Generated in Search Response",min_value=1,max_value=5,value=3)
|
14 |
|
15 |
if "sen_df" not in st.session_state:
|
16 |
+
st.session_state['sen_df'] = ''
|
17 |
|
18 |
if "earnings_passages" not in st.session_state:
|
19 |
st.session_state["earnings_passages"] = ''
|
|
|
21 |
if st.session_state["sen_df"] or st.session_state["earnings_passages"]:
|
22 |
|
23 |
## Save to a dataframe for ease of visualization
|
24 |
+
sen_df = st.session_state['sen_df']
|
25 |
|
26 |
passages = preprocess_plain_text(st.session_state['earnings_passages'],window_size=window_size)
|
27 |
|