Spaces:
Running
on
Zero
Running
on
Zero
DongfuJiang
commited on
Commit
•
34e38f3
1
Parent(s):
6e2b391
update
Browse files
arena_elo/elo_rating/elo_analysis.py
CHANGED
@@ -362,7 +362,8 @@ if __name__ == "__main__":
|
|
362 |
pretty_print_elo_rating(anony_results["elo_rating_online"])
|
363 |
print("# Median")
|
364 |
pretty_print_elo_rating(anony_results["elo_rating_final"])
|
365 |
-
print(f"last update : {anony_results['last_updated_datetime']}")
|
|
|
366 |
|
367 |
last_updated_tstamp = full_results["last_updated_tstamp"]
|
368 |
cutoff_date = datetime.datetime.fromtimestamp(
|
|
|
362 |
pretty_print_elo_rating(anony_results["elo_rating_online"])
|
363 |
print("# Median")
|
364 |
pretty_print_elo_rating(anony_results["elo_rating_final"])
|
365 |
+
print(f"Annoy last update : {anony_results['last_updated_datetime']}")
|
366 |
+
print(f"Full last update : {full_results['last_updated_datetime']}")
|
367 |
|
368 |
last_updated_tstamp = full_results["last_updated_tstamp"]
|
369 |
cutoff_date = datetime.datetime.fromtimestamp(
|
serve/gradio_web.py
CHANGED
@@ -139,29 +139,29 @@ Find out who is the 🥇conditional image generation models! More models are goi
|
|
139 |
inputs=None,
|
140 |
outputs=btn_list
|
141 |
)
|
142 |
-
|
|
|
143 |
leftvote_btn.click(
|
144 |
leftvote_last_response,
|
145 |
-
inputs=[state0, state1,
|
146 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
147 |
)
|
148 |
rightvote_btn.click(
|
149 |
rightvote_last_response,
|
150 |
-
inputs=[state0, state1,
|
151 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
152 |
)
|
153 |
tie_btn.click(
|
154 |
tievote_last_response,
|
155 |
-
inputs=[state0, state1,
|
156 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
157 |
)
|
158 |
bothbad_btn.click(
|
159 |
bothbad_vote_last_response,
|
160 |
-
inputs=[state0, state1,
|
161 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
162 |
)
|
163 |
|
164 |
-
|
165 |
share_btn.click(
|
166 |
share_click,
|
167 |
inputs=[state0, state1, model_selector_left, model_selector_right],
|
|
|
139 |
inputs=None,
|
140 |
outputs=btn_list
|
141 |
)
|
142 |
+
dummy_left_model = gr.State("")
|
143 |
+
dummy_right_model = gr.State("")
|
144 |
leftvote_btn.click(
|
145 |
leftvote_last_response,
|
146 |
+
inputs=[state0, state1, dummy_left_model, dummy_right_model],
|
147 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
148 |
)
|
149 |
rightvote_btn.click(
|
150 |
rightvote_last_response,
|
151 |
+
inputs=[state0, state1, dummy_left_model, dummy_right_model],
|
152 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
153 |
)
|
154 |
tie_btn.click(
|
155 |
tievote_last_response,
|
156 |
+
inputs=[state0, state1, dummy_left_model, dummy_right_model],
|
157 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
158 |
)
|
159 |
bothbad_btn.click(
|
160 |
bothbad_vote_last_response,
|
161 |
+
inputs=[state0, state1, dummy_left_model, dummy_right_model],
|
162 |
outputs=[textbox, leftvote_btn, rightvote_btn, tie_btn, bothbad_btn, model_selector_left, model_selector_right]
|
163 |
)
|
164 |
|
|
|
165 |
share_btn.click(
|
166 |
share_click,
|
167 |
inputs=[state0, state1, model_selector_left, model_selector_right],
|
serve/gradio_web_image_editing.py
CHANGED
@@ -172,9 +172,11 @@ Find out who is the 🥇conditional image edition models!
|
|
172 |
)
|
173 |
vote_btns = [leftvote_btn, rightvote_btn, tie_btn, bothbad_btn]
|
174 |
input_list = [textbox_source, textbox_target, source_image, textbox_instruct]
|
|
|
|
|
175 |
leftvote_btn.click(
|
176 |
leftvote_last_response,
|
177 |
-
inputs=[state0, state1,
|
178 |
outputs=[model_selector_left, model_selector_right] + input_list + vote_btns,
|
179 |
)
|
180 |
rightvote_btn.click(
|
|
|
172 |
)
|
173 |
vote_btns = [leftvote_btn, rightvote_btn, tie_btn, bothbad_btn]
|
174 |
input_list = [textbox_source, textbox_target, source_image, textbox_instruct]
|
175 |
+
dummy_left_model = gr.State("")
|
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(
|