RKocielnik commited on
Commit
973bc23
·
verified ·
1 Parent(s): 6046a3a

progress start

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -298,6 +298,7 @@ def _genSentenceCoverMsg(test_sentences, total_att_terms, bias_spec, isGen=False
298
 
299
  def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
300
  global use_paper_sentences, G_NUM_SENTENCES, G_MISSING_SPEC, G_TEST_SENTENCES
 
301
 
302
  print("RETRIEVE SENTENCES CLICKED!")
303
  G_MISSING_SPEC = []
@@ -398,7 +399,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
398
  return (err_update, # error message
399
  openai_gen_row_update, # OpenAI generation
400
  gen_additional_sentence_checkbox_update, # optional generate additional sentences
401
- num2gen_update, # Number of sentences to genrate
402
  tested_model_row_update, #Tested Model Row
403
  #tested_model_dropdown_update, # Tested Model Dropdown
404
  info_msg_update, # sentences retrieved info update
 
298
 
299
  def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
300
  global use_paper_sentences, G_NUM_SENTENCES, G_MISSING_SPEC, G_TEST_SENTENCES
301
+ progress(0, desc="Starting")
302
 
303
  print("RETRIEVE SENTENCES CLICKED!")
304
  G_MISSING_SPEC = []
 
399
  return (err_update, # error message
400
  openai_gen_row_update, # OpenAI generation
401
  gen_additional_sentence_checkbox_update, # optional generate additional sentences
402
+ num2gen_update, # Number of sentences to generate
403
  tested_model_row_update, #Tested Model Row
404
  #tested_model_dropdown_update, # Tested Model Dropdown
405
  info_msg_update, # sentences retrieved info update