mikepastor11 commited on
Commit
f0a6795
1 Parent(s): a446da1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -129,6 +129,7 @@ def process_user_question(user_question):
129
  ###################################################################################
130
  def main():
131
 
 
132
  # Load the environment variables - if any
133
  load_dotenv()
134
 
@@ -151,7 +152,7 @@ def main():
151
  # Set page config with base64 string
152
  st.set_page_config(page_title="Pennwick File Analyzer 2", page_icon=f"data:image/ico;base64,{encoded_string}")
153
 
154
-
155
 
156
 
157
  ###################
@@ -166,8 +167,10 @@ def main():
166
  # st.header("Pennwick File Analyzer :books:")
167
  st.header("Pennwick File Analyzer 2")
168
 
 
169
  user_question = st.text_input("Ask the Model a question about your uploaded documents:")
170
- if user_question:
 
171
  process_user_question(user_question)
172
 
173
  # st.write( user_template, unsafe_allow_html=True)
 
129
  ###################################################################################
130
  def main():
131
 
132
+ print( 'Starting up...')
133
  # Load the environment variables - if any
134
  load_dotenv()
135
 
 
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
  ###################
 
167
  # st.header("Pennwick File Analyzer :books:")
168
  st.header("Pennwick File Analyzer 2")
169
 
170
+ user_question = None
171
  user_question = st.text_input("Ask the Model a question about your uploaded documents:")
172
+ if user_question != None:
173
+ print( 'calling process question', user_question)
174
  process_user_question(user_question)
175
 
176
  # st.write( user_template, unsafe_allow_html=True)