zach commited on
Commit
7b59c59
·
1 Parent(s): d610c1b

Fix bug with option b button

Browse files
Files changed (1) hide show
  1. src/app.py +19 -5
src/app.py CHANGED
@@ -478,12 +478,10 @@ def build_gradio_interface() -> gr.Blocks:
478
  # Vote button click event handlers
479
  vote_button_a.click(
480
  fn=vote,
481
- inputs=[vote_submitted_state, option_map_state, vote_button_a],
482
- outputs=[
483
  vote_submitted_state,
 
484
  vote_button_a,
485
- vote_button_b,
486
- synthesize_speech_button,
487
  comparison_type_state,
488
  option_a_generation_id_state,
489
  option_b_generation_id_state,
@@ -491,10 +489,26 @@ def build_gradio_interface() -> gr.Blocks:
491
  character_description_state,
492
  text_state,
493
  ],
 
 
 
 
 
 
494
  )
495
  vote_button_b.click(
496
  fn=vote,
497
- inputs=[vote_submitted_state, option_map_state, vote_button_b],
 
 
 
 
 
 
 
 
 
 
498
  outputs=[
499
  vote_submitted_state,
500
  vote_button_a,
 
478
  # Vote button click event handlers
479
  vote_button_a.click(
480
  fn=vote,
481
+ inputs=[
 
482
  vote_submitted_state,
483
+ option_map_state,
484
  vote_button_a,
 
 
485
  comparison_type_state,
486
  option_a_generation_id_state,
487
  option_b_generation_id_state,
 
489
  character_description_state,
490
  text_state,
491
  ],
492
+ outputs=[
493
+ vote_submitted_state,
494
+ vote_button_a,
495
+ vote_button_b,
496
+ synthesize_speech_button,
497
+ ],
498
  )
499
  vote_button_b.click(
500
  fn=vote,
501
+ inputs=[
502
+ vote_submitted_state,
503
+ option_map_state,
504
+ vote_button_a,
505
+ comparison_type_state,
506
+ option_a_generation_id_state,
507
+ option_b_generation_id_state,
508
+ text_modified_state,
509
+ character_description_state,
510
+ text_state,
511
+ ],
512
  outputs=[
513
  vote_submitted_state,
514
  vote_button_a,