DongfuJiang commited on
Commit
4b75be6
1 Parent(s): 34e38f3
Files changed (1) hide show
  1. serve/gradio_web_image_editing.py +4 -4
serve/gradio_web_image_editing.py CHANGED
@@ -176,22 +176,22 @@ Find out who is the 🥇conditional image edition models!
176
  dummy_right_model = gr.State("")
177
  leftvote_btn.click(
178
  leftvote_last_response,
179
- inputs=[state0, state1, ""],
180
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
181
  )
182
  rightvote_btn.click(
183
  rightvote_last_response,
184
- inputs=[state0, state1, model_selector_left, model_selector_right],
185
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
186
  )
187
  tie_btn.click(
188
  tievote_last_response,
189
- inputs=[state0, state1, model_selector_left, model_selector_right],
190
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
191
  )
192
  bothbad_btn.click(
193
  bothbad_vote_last_response,
194
- inputs=[state0, state1, model_selector_left, model_selector_right],
195
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
196
  )
197
  share_btn.click(
 
176
  dummy_right_model = gr.State("")
177
  leftvote_btn.click(
178
  leftvote_last_response,
179
+ inputs=[state0, state1, dummy_left_model, dummy_right_model],
180
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
181
  )
182
  rightvote_btn.click(
183
  rightvote_last_response,
184
+ inputs=[state0, state1, dummy_left_model, dummy_right_model],
185
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
186
  )
187
  tie_btn.click(
188
  tievote_last_response,
189
+ inputs=[state0, state1, dummy_left_model, dummy_right_model],
190
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
191
  )
192
  bothbad_btn.click(
193
  bothbad_vote_last_response,
194
+ inputs=[state0, state1, dummy_left_model, dummy_right_model],
195
  outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
196
  )
197
  share_btn.click(