Update app.py
Browse files
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}")
|