mikeee commited on
Commit
8543cd7
Β·
1 Parent(s): d1ea5c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -189,8 +189,10 @@ if ask:
189
  else:
190
  msg = "Um... excuse me but... this can take about a minute, or two, for your first question because some stuff needs to be downloaded πŸ₯ΊπŸ‘‰πŸ»πŸ‘ˆπŸ»"
191
  st.session_state.key = 'value'
192
- # ns.counter = 1
 
193
  with st.spinner(msg):
 
194
  try:
195
  answer, pages, extract = get_answer(question=user_input)
196
  logger.info(f"answer: {answer}")
 
189
  else:
190
  msg = "Um... excuse me but... this can take about a minute, or two, for your first question because some stuff needs to be downloaded πŸ₯ΊπŸ‘‰πŸ»πŸ‘ˆπŸ»"
191
  st.session_state.key = 'value'
192
+ # ns.counter = 1
193
+
194
  with st.spinner(msg):
195
+ os.environ["OPENAI_API_KEY"] = openai_api_key
196
  try:
197
  answer, pages, extract = get_answer(question=user_input)
198
  logger.info(f"answer: {answer}")