elibrowne commited on
Commit
e7c52d7
1 Parent(s): 5053d22

Modify slider step

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,9 +36,9 @@ with gr.Blocks() as user_eval:
36
  # Scoring box
37
  with gr.Column(scale = 1) as scores:
38
  desc_1 = gr.Markdown("How **relevant** are these passages to our query?")
39
- eval_1 = gr.Slider(1, 5)
40
  desc_2 = gr.Markdown("How **novel** are these passages compared to the previous passages?")
41
- eval_2 = gr.Slider(1, 5)
42
  btn = gr.Button("Next")
43
 
44
  def next(eval_1, eval_2 = 0):
 
36
  # Scoring box
37
  with gr.Column(scale = 1) as scores:
38
  desc_1 = gr.Markdown("How **relevant** are these passages to our query?")
39
+ eval_1 = gr.Slider(1, 5, step = 0.5)
40
  desc_2 = gr.Markdown("How **novel** are these passages compared to the previous passages?")
41
+ eval_2 = gr.Slider(1, 5, step = 0.5)
42
  btn = gr.Button("Next")
43
 
44
  def next(eval_1, eval_2 = 0):