elibrowne commited on
Commit
1d3a96d
1 Parent(s): d201c51

Dynamic questions pane

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -127,11 +127,14 @@ with gr.Blocks() as user_eval:
127
  """ + passage_texts[step])
128
  }
129
 
130
- def next_g(eval_1):
131
-
 
 
 
132
 
133
  btn_p.click(fn = next_p, inputs = [eval_1, eval_2, eval_3], outputs = [selection, scores_p, scores_g])
134
- btn_g.click(fn = next_g, inputs = [eval_1, eval_2, eval_3], outputs = [selection])
135
 
136
  # Question and answering dynamics
137
  with gr.Row(equal_height = False, visible = False) as question:
 
127
  """ + passage_texts[step])
128
  }
129
 
130
+ def next_g(eval_satisfied):
131
+ print(eval_satisfied)
132
+ return {
133
+ selection: gr.Markdown("next summary")
134
+ }
135
 
136
  btn_p.click(fn = next_p, inputs = [eval_1, eval_2, eval_3], outputs = [selection, scores_p, scores_g])
137
+ btn_g.click(fn = next_g, inputs = [eval_1], outputs = [selection])
138
 
139
  # Question and answering dynamics
140
  with gr.Row(equal_height = False, visible = False) as question: