elibrowne commited on
Commit
ff144c6
·
1 Parent(s): bdc0c4f

Reset inputs after score

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -136,10 +136,12 @@ with gr.Blocks(theme = theme) as user_eval:
136
  eval_satisfied = gr.Slider(1, 5, step = 0.5, label = "User Satisfaction")
137
  btn_g = gr.Button("Next")
138
 
139
- def next_p(eval_0, eval_1, eval_2, eval_3):
140
  global step
141
  global mode
142
  step += 1
 
 
143
  if step == len(passage_texts):
144
  # Step 10: all sources
145
  collapsible_string = ""
 
136
  eval_satisfied = gr.Slider(1, 5, step = 0.5, label = "User Satisfaction")
137
  btn_g = gr.Button("Next")
138
 
139
+ def next_p(e0, e1, e2, e3):
140
  global step
141
  global mode
142
  step += 1
143
+ print(e0)
144
+ print(e1 + e2 + e3)
145
  if step == len(passage_texts):
146
  # Step 10: all sources
147
  collapsible_string = ""