mikepastor11 commited on
Commit
74b3d03
1 Parent(s): f0a6795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -98,6 +98,7 @@ def prepare_conversation(vectorstore):
98
 
99
  def process_user_question(user_question):
100
 
 
101
  if user_question == None :
102
  print('question is null')
103
  return
@@ -110,6 +111,8 @@ def process_user_question(user_question):
110
  print('session STATE is null')
111
  return
112
 
 
 
113
 
114
  response = st.session_state.conversation({'question': user_question})
115
  # response = st.session_state.conversation({'summarization': user_question})
@@ -129,7 +132,7 @@ def process_user_question(user_question):
129
  ###################################################################################
130
  def main():
131
 
132
- print( 'Starting up...')
133
  # Load the environment variables - if any
134
  load_dotenv()
135
 
@@ -152,7 +155,7 @@ def main():
152
  # Set page config with base64 string
153
  st.set_page_config(page_title="Pennwick File Analyzer 2", page_icon=f"data:image/ico;base64,{encoded_string}")
154
 
155
- print( 'prepared page...')
156
 
157
 
158
  ###################
 
98
 
99
  def process_user_question(user_question):
100
 
101
+ print('process_user_question called: \n')
102
  if user_question == None :
103
  print('question is null')
104
  return
 
111
  print('session STATE is null')
112
  return
113
 
114
+ print('question is: ', user_question)
115
+ print('\nsession is: ', st )
116
 
117
  response = st.session_state.conversation({'question': user_question})
118
  # response = st.session_state.conversation({'summarization': user_question})
 
132
  ###################################################################################
133
  def main():
134
 
135
+ print( 'Pennwick Starting up...\n')
136
  # Load the environment variables - if any
137
  load_dotenv()
138
 
 
155
  # Set page config with base64 string
156
  st.set_page_config(page_title="Pennwick File Analyzer 2", page_icon=f"data:image/ico;base64,{encoded_string}")
157
 
158
+ print( 'prepared page...\n')
159
 
160
 
161
  ###################