ksort commited on
Commit
512e129
Β·
1 Parent(s): b177a48
Files changed (2) hide show
  1. serve/gradio_web.py +3 -6
  2. serve/leaderboard.py +2 -2
serve/gradio_web.py CHANGED
@@ -38,16 +38,13 @@ from functools import partial
38
 
39
  def build_side_by_side_ui_anony(models):
40
  notice_markdown = """
41
- # βš”οΈ Text2Image-Arena βš”οΈ
42
  ## πŸ“œ Rules
43
- - Input prompt to two anonymous models in same area (e.g., SD, SDXL, OpenJourney in Text-guided Image Generation Model) and vote for the better one!
44
  - When the results are ready, click the button below to vote.
45
- - Vote won't be counted if model identity is revealed during conversation.
46
  - Click "New Round" to start a new round.
47
 
48
- ## πŸ† Arena Elo
49
- Find out who is the πŸ₯‡conditional image generation models! More models are going to be supported.
50
-
51
  ## πŸ‘‡ Generating now!
52
 
53
  """
 
38
 
39
  def build_side_by_side_ui_anony(models):
40
  notice_markdown = """
41
+ # βš”οΈ K-Sort-Arena βš”οΈ
42
  ## πŸ“œ Rules
43
+ - Input prompt to Four anonymous models in same area (e.g., SD, SDXL, OpenJourney in Text-guided Image Generation Model) and vote for the better one!
44
  - When the results are ready, click the button below to vote.
45
+ - Two voting mode: Rand Mode and Best Mode.
46
  - Click "New Round" to start a new round.
47
 
 
 
 
48
  ## πŸ‘‡ Generating now!
49
 
50
  """
serve/leaderboard.py CHANGED
@@ -38,7 +38,7 @@ leader_component_values = [None] * 5
38
 
39
  def make_leaderboard_md(elo_results):
40
  leaderboard_md = f"""
41
- # πŸ† Text2Image-Arena Leaderboard
42
  """
43
 
44
  return leaderboard_md
@@ -166,7 +166,7 @@ def build_leaderboard_tab(elo_results_file, leaderboard_table_file, show_plot=Fa
166
  with gr.Tabs() as tabs:
167
  # arena table
168
  arena_table_vals = get_arena_table(anony_arena_df, model_table_df)
169
- with gr.Tab("Arena Elo", id=0):
170
  md = make_arena_leaderboard_md(anony_elo_results)
171
  gr.Markdown(md, elem_id="leaderboard_markdown")
172
  gr.Dataframe(
 
38
 
39
  def make_leaderboard_md(elo_results):
40
  leaderboard_md = f"""
41
+ # πŸ† K-Sort-Arena Leaderboard
42
  """
43
 
44
  return leaderboard_md
 
166
  with gr.Tabs() as tabs:
167
  # arena table
168
  arena_table_vals = get_arena_table(anony_arena_df, model_table_df)
169
+ with gr.Tab("Arena Score", id=0):
170
  md = make_arena_leaderboard_md(anony_elo_results)
171
  gr.Markdown(md, elem_id="leaderboard_markdown")
172
  gr.Dataframe(