Rohan Kumar commited on
Commit
3dbd0fa
·
verified ·
1 Parent(s): cd6df59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -968,23 +968,25 @@ Your responses have been saved. Thank you for your contribution!
968
  *Feel free to annotate another batch using the button below.*
969
  """
970
  return (
971
- gr.update(visible=False),
972
- gr.update(visible=False),
973
- gr.update(visible=True),
974
- items,
975
- next_idx,
976
- gr.update(value=""),
977
- gr.update(value=completion_text),
 
978
  )
979
 
980
  return (
981
- gr.update(visible=False),
982
- gr.update(visible=True),
983
- gr.update(visible=False),
984
- items,
985
- next_idx,
986
- gr.update(value=render_question(items[next_idx], next_idx, total)),
987
- gr.update(value=""),
 
988
  )
989
 
990
  def restart():
 
968
  *Feel free to annotate another batch using the button below.*
969
  """
970
  return (
971
+ gr.update(visible=False), # col_welcome
972
+ gr.update(visible=False), # col_rating
973
+ gr.update(visible=True), # col_done
974
+ name, # s_name ✅ FIX
975
+ items, # s_items
976
+ next_idx, # s_idx
977
+ gr.update(value=""), # q_html
978
+ gr.update(value=completion_text), # done_md
979
  )
980
 
981
  return (
982
+ gr.update(visible=False), # col_welcome
983
+ gr.update(visible=False), # col_rating
984
+ gr.update(visible=True), # col_done
985
+ name, # s_name ✅ FIX
986
+ items, # s_items
987
+ next_idx, # s_idx
988
+ gr.update(value=""), # q_html
989
+ gr.update(value=completion_text), # done_md
990
  )
991
 
992
  def restart():