ksort commited on
Commit
cf4a106
β€’
1 Parent(s): 6ba92c4

Update contributor

Browse files
Files changed (3) hide show
  1. contributor.json +12 -11
  2. serve/gradio_web.py +1 -0
  3. serve/leaderboard.py +8 -3
contributor.json CHANGED
@@ -2,14 +2,14 @@
2
  "contributor": [
3
  {
4
  "Rank": 1,
5
- "\ud83d\udc68\u200d\u2696\ufe0f Name": "Jing Zhang",
6
- "\ud83d\uddf3\ufe0f Votes*": 200,
7
  "\ud83c\udfdb\ufe0f Affiliation": "CASIA"
8
  },
9
  {
10
  "Rank": 2,
11
  "\ud83d\udc68\u200d\u2696\ufe0f Name": "Zhikai",
12
- "\ud83d\uddf3\ufe0f Votes*": 180,
13
  "\ud83c\udfdb\ufe0f Affiliation": "CASIA"
14
  },
15
  {
@@ -45,7 +45,7 @@
45
  {
46
  "Rank": 8,
47
  "\ud83d\udc68\u200d\u2696\ufe0f Name": "Zhen",
48
- "\ud83d\uddf3\ufe0f Votes*": 73,
49
  "\ud83c\udfdb\ufe0f Affiliation": "Berkeley"
50
  },
51
  {
@@ -80,15 +80,15 @@
80
  },
81
  {
82
  "Rank": 14,
83
- "\ud83d\udc68\u200d\u2696\ufe0f Name": "Chun-Kai Fan",
84
- "\ud83d\uddf3\ufe0f Votes*": 8,
85
- "\ud83c\udfdb\ufe0f Affiliation": "Peking University HMI Lab"
86
  },
87
  {
88
  "Rank": 15,
89
- "\ud83d\udc68\u200d\u2696\ufe0f Name": "Jing",
90
- "\ud83d\uddf3\ufe0f Votes*": 4,
91
- "\ud83c\udfdb\ufe0f Affiliation": "CASIA"
92
  },
93
  {
94
  "Rank": 16,
@@ -150,5 +150,6 @@
150
  "\ud83d\uddf3\ufe0f Votes*": 1,
151
  "\ud83c\udfdb\ufe0f Affiliation": ""
152
  }
153
- ]
 
154
  }
 
2
  "contributor": [
3
  {
4
  "Rank": 1,
5
+ "\ud83d\udc68\u200d\u2696\ufe0f Name": "Jing",
6
+ "\ud83d\uddf3\ufe0f Votes*": 204,
7
  "\ud83c\udfdb\ufe0f Affiliation": "CASIA"
8
  },
9
  {
10
  "Rank": 2,
11
  "\ud83d\udc68\u200d\u2696\ufe0f Name": "Zhikai",
12
+ "\ud83d\uddf3\ufe0f Votes*": 182,
13
  "\ud83c\udfdb\ufe0f Affiliation": "CASIA"
14
  },
15
  {
 
45
  {
46
  "Rank": 8,
47
  "\ud83d\udc68\u200d\u2696\ufe0f Name": "Zhen",
48
+ "\ud83d\uddf3\ufe0f Votes*": 77,
49
  "\ud83c\udfdb\ufe0f Affiliation": "Berkeley"
50
  },
51
  {
 
80
  },
81
  {
82
  "Rank": 14,
83
+ "\ud83d\udc68\u200d\u2696\ufe0f Name": "Mikeme",
84
+ "\ud83d\uddf3\ufe0f Votes*": 10,
85
+ "\ud83c\udfdb\ufe0f Affiliation": ""
86
  },
87
  {
88
  "Rank": 15,
89
+ "\ud83d\udc68\u200d\u2696\ufe0f Name": "Chun-Kai Fan",
90
+ "\ud83d\uddf3\ufe0f Votes*": 8,
91
+ "\ud83c\udfdb\ufe0f Affiliation": "Peking University HMI Lab"
92
  },
93
  {
94
  "Rank": 16,
 
150
  "\ud83d\uddf3\ufe0f Votes*": 1,
151
  "\ud83c\udfdb\ufe0f Affiliation": ""
152
  }
153
+ ],
154
+ "last_updated": "2024-08-31"
155
  }
serve/gradio_web.py CHANGED
@@ -59,6 +59,7 @@ def build_side_by_side_ui_anony(models):
59
 
60
  ## πŸ‘‡ Generating now!
61
  - Note: Due to the API's image safety checks, errors may occur. If this happens, please re-enter a different prompt.
 
62
  """
63
 
64
  model_list = models.model_ig_list
 
59
 
60
  ## πŸ‘‡ Generating now!
61
  - Note: Due to the API's image safety checks, errors may occur. If this happens, please re-enter a different prompt.
62
+ - At times, high API concurrency can cause congestion, potentially resulting in a generation time of up to 1.5 minutes per image. Thank you for your patience.
63
  """
64
 
65
  model_list = models.model_ig_list
serve/leaderboard.py CHANGED
@@ -163,20 +163,25 @@ def build_leaderboard_video_tab(score_result_file = 'sorted_score_list_video.jso
163
 
164
 
165
  def build_leaderboard_contributor(file = 'contributor.json'):
 
 
 
 
 
 
166
  md = f"""
167
  # πŸ† Contributor Leaderboard
168
  The submission of user information is entirely optional. This information is used solely for contribution statistics. We respect and safeguard users' privacy choices.
169
  To maintain a clean and concise leaderboard, please ensure consistency in submitted names and affiliations. For example, use 'Berkeley' consistently rather than alternating with 'UC Berkeley'.
170
  - Votes*: Each image vote counts as one Vote*, while each video vote counts as two Votes* due to the increased effort involved.
 
171
  """
 
172
  md_1 = gr.Markdown(md, elem_id="leaderboard_markdown")
173
 
174
  # md = make_arena_leaderboard_md(total_models, total_votes, last_updated)
175
  # gr.Markdown(md, elem_id="leaderboard_markdown")
176
 
177
- with open(file, "r") as json_file:
178
- data = json.load(json_file)
179
- score_results = data["contributor"]
180
  md = make_arena_leaderboard_data(score_results)
181
  gr.Dataframe(md)
182
 
 
163
 
164
 
165
  def build_leaderboard_contributor(file = 'contributor.json'):
166
+
167
+ with open(file, "r") as json_file:
168
+ data = json.load(json_file)
169
+ score_results = data["contributor"]
170
+ last_updated = data["last_updated"]
171
+
172
  md = f"""
173
  # πŸ† Contributor Leaderboard
174
  The submission of user information is entirely optional. This information is used solely for contribution statistics. We respect and safeguard users' privacy choices.
175
  To maintain a clean and concise leaderboard, please ensure consistency in submitted names and affiliations. For example, use 'Berkeley' consistently rather than alternating with 'UC Berkeley'.
176
  - Votes*: Each image vote counts as one Vote*, while each video vote counts as two Votes* due to the increased effort involved.
177
+ Last updated: {last_updated}
178
  """
179
+
180
  md_1 = gr.Markdown(md, elem_id="leaderboard_markdown")
181
 
182
  # md = make_arena_leaderboard_md(total_models, total_votes, last_updated)
183
  # gr.Markdown(md, elem_id="leaderboard_markdown")
184
 
 
 
 
185
  md = make_arena_leaderboard_data(score_results)
186
  gr.Dataframe(md)
187