mehradans92 commited on
Commit
b0f64e3
·
1 Parent(s): 299f907

not sure what's wrong with progress bar

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -190,7 +190,8 @@ if searchButton:
190
  def answer_callback(question_query):
191
  global docs
192
  # global pdf_info
193
- my_bar = st.progress(0, "Please wait...")
 
194
  if docs is None:
195
  my_bar.progress(0.2, "Please wait...")
196
  pdf_info = st.session_state['pdf_info']
 
190
  def answer_callback(question_query):
191
  global docs
192
  # global pdf_info
193
+ progress_text = "Please wait..."
194
+ my_bar = st.progress(0, text = progress_text)
195
  if docs is None:
196
  my_bar.progress(0.2, "Please wait...")
197
  pdf_info = st.session_state['pdf_info']