sherzod-hakimov commited on
Commit
68ab1d4
β€’
1 Parent(s): 00586e5

Upload 3 files

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +0 -60
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Clembench
3
  emoji: πŸ†
4
  colorFrom: yellow
5
  colorTo: green
 
1
  ---
2
+ title: Multimodal Clembench
3
  emoji: πŸ†
4
  colorFrom: yellow
5
  colorTo: green
app.py CHANGED
@@ -33,12 +33,9 @@ def restart_space():
33
  GITHUB UTILS
34
  """
35
  github_data = get_github_data()
36
- text_leaderboard = github_data["text"][0] # Get the text-only leaderboard for its available latest version
37
  multimodal_leaderboard = github_data["multimodal"][0] # Get multimodal leaderboard for its available latest version.
38
 
39
  # Show only First 4 columns for the leaderboards
40
- text_leaderboard = text_leaderboard.iloc[:, :4]
41
- print(f"Showing the following columns for the latest leaderboard: {text_leaderboard.columns}")
42
  multimodal_leaderboard = multimodal_leaderboard.iloc[:, :4]
43
  print(f"Showing the following columns for the multimodal leaderboard: {multimodal_leaderboard.columns}")
44
 
@@ -113,16 +110,6 @@ with hf_app:
113
  ####################### THIRD TAB - PLOTS - %PLAYED V/S QUALITY SCORE #######################
114
  """
115
  with gr.TabItem("πŸ“ˆ Plots", elem_id="plots", id=2):
116
- """
117
- DropDown Select for Text/Multimodal Leaderboard
118
- """
119
- leaderboard_selection = gr.Dropdown(
120
- choices=[TEXT_NAME, MULTIMODAL_NAME],
121
- value=TEXT_NAME,
122
- label="Select Leaderboard πŸŽ–οΈπŸ”½",
123
- elem_id="value-select-0",
124
- interactive=True
125
- )
126
 
127
  """
128
  Accordion Groups to select individual models - Hidden by default
@@ -241,37 +228,7 @@ with hf_app:
241
  [plot_output],
242
  queue=True
243
  )
244
- """
245
- LEADERBOARD SELECT CHANGE ACTIONS
246
- Update Checkbox Groups and Dummy DF based on the leaderboard selected
247
- """
248
- leaderboard_selection.change(
249
- update_open_models,
250
- [leaderboard_selection],
251
- [open_models_selection],
252
- queue=True
253
- )
254
 
255
- leaderboard_selection.change(
256
- update_closed_models,
257
- [leaderboard_selection],
258
- [closed_models_selection],
259
- queue=True
260
- )
261
-
262
- leaderboard_selection.change(
263
- get_plot_df,
264
- [leaderboard_selection],
265
- [dummy_plot_df],
266
- queue=True
267
- )
268
-
269
- ## Implement Feature - Reset Plot when Leaderboard selection changes
270
- leaderboard_selection.change(
271
- reset_show_all,
272
- outputs=[show_all],
273
- queue=True
274
- )
275
 
276
  open_models_selection.change(
277
  reset_show_all,
@@ -285,23 +242,6 @@ with hf_app:
285
  queue=True
286
  )
287
 
288
- leaderboard_selection.change(
289
- reset_show_names,
290
- outputs=[show_names],
291
- queue=True
292
- )
293
-
294
- leaderboard_selection.change(
295
- reset_show_legend,
296
- outputs=[show_legend],
297
- queue=True
298
- )
299
-
300
- leaderboard_selection.change(
301
- reset_mobile_view,
302
- outputs=[mobile_view],
303
- queue=True
304
- )
305
 
306
  """
307
  ####################### FOURTH TAB - VERSIONS AND DETAILS #######################
 
33
  GITHUB UTILS
34
  """
35
  github_data = get_github_data()
 
36
  multimodal_leaderboard = github_data["multimodal"][0] # Get multimodal leaderboard for its available latest version.
37
 
38
  # Show only First 4 columns for the leaderboards
 
 
39
  multimodal_leaderboard = multimodal_leaderboard.iloc[:, :4]
40
  print(f"Showing the following columns for the multimodal leaderboard: {multimodal_leaderboard.columns}")
41
 
 
110
  ####################### THIRD TAB - PLOTS - %PLAYED V/S QUALITY SCORE #######################
111
  """
112
  with gr.TabItem("πŸ“ˆ Plots", elem_id="plots", id=2):
 
 
 
 
 
 
 
 
 
 
113
 
114
  """
115
  Accordion Groups to select individual models - Hidden by default
 
228
  [plot_output],
229
  queue=True
230
  )
 
 
 
 
 
 
 
 
 
 
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
 
233
  open_models_selection.change(
234
  reset_show_all,
 
242
  queue=True
243
  )
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
 
246
  """
247
  ####################### FOURTH TAB - VERSIONS AND DETAILS #######################