nickmuchi commited on
Commit
77554c7
1 Parent(s): 87cf337

Update pages/2_Twitter_GPT_Search.py

Browse files
Files changed (1) hide show
  1. pages/2_Twitter_GPT_Search.py +1 -5
pages/2_Twitter_GPT_Search.py CHANGED
@@ -21,10 +21,6 @@ from langchain.schema import (
21
 
22
  from datetime import datetime as dt
23
 
24
-
25
- if 'tlist' not in st.session_state:
26
- st.session_state['tlist'] = ''
27
-
28
  system_template="""Use the following pieces of context to answer the users question.
29
  If you don't know the answer, just say that you don't know, don't try to make up an answer.
30
  ALWAYS return a "SOURCES" part in your answer.
@@ -60,7 +56,7 @@ bi_enc_dict = {'mpnet-base-v2':"sentence-transformers/all-mpnet-base-v2",
60
  'instructor-base': 'hkunlp/instructor-base'}
61
 
62
  search_input = st.text_input(
63
- label='Enter Your Search Query',value= "What are the most topical risks?", key='search')
64
 
65
  sbert_model_name = st.sidebar.selectbox("Embedding Model", options=list(bi_enc_dict.keys()), key='sbox')
66
 
 
21
 
22
  from datetime import datetime as dt
23
 
 
 
 
 
24
  system_template="""Use the following pieces of context to answer the users question.
25
  If you don't know the answer, just say that you don't know, don't try to make up an answer.
26
  ALWAYS return a "SOURCES" part in your answer.
 
56
  'instructor-base': 'hkunlp/instructor-base'}
57
 
58
  search_input = st.text_input(
59
+ label='Enter Your Search Query',value= "What is the latest update on central banks?", key='search')
60
 
61
  sbert_model_name = st.sidebar.selectbox("Embedding Model", options=list(bi_enc_dict.keys()), key='sbox')
62