calmgoose commited on
Commit
bce3958
β€’
1 Parent(s): 5b11cff

add waiting message

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -129,10 +129,11 @@ if ask:
129
  if api_key is "":
130
  output = "Whoops looks like you forgot your API key buddy"
131
  else:
132
- try:
133
- output = get_answer(question=user_input)
134
- except:
135
- output = "What's going on? That's not the right API key"
 
136
 
137
  st.write(f"**1984:** {output}")
138
 
 
129
  if api_key is "":
130
  output = "Whoops looks like you forgot your API key buddy"
131
  else:
132
+ with st.spinner("Um... excuse me but... this can take about a minute for your first question because some stuff have to be downloaded πŸ₯ΊπŸ‘‰πŸ»πŸ‘ˆπŸ»"):
133
+ try:
134
+ output = get_answer(question=user_input)
135
+ except:
136
+ output = "What's going on? That's not the right API key"
137
 
138
  st.write(f"**1984:** {output}")
139