MINGYISU commited on
Commit
39dbede
·
verified ·
1 Parent(s): 576cf58

Permanently removed the old V1 leaderboard

Browse files
Files changed (1) hide show
  1. app.py +0 -82
app.py CHANGED
@@ -153,87 +153,5 @@ with gr.Blocks() as block:
153
  with gr.Row():
154
  gr.Markdown(SUBMIT_INTRODUCTION, elem_classes="markdown-text")
155
 
156
- # table 7
157
- with gr.TabItem("📊 MMEB-V1 (Archived, Now Image)", elem_id="qa-tab-table1", id=7):
158
- with gr.Row():
159
- with gr.Accordion("Citation", open=False):
160
- citation_button = gr.Textbox(
161
- value=CITATION_BUTTON_TEXT,
162
- label=CITATION_BUTTON_LABEL,
163
- elem_id="citation-button",
164
- lines=10,
165
- )
166
- gr.Markdown(TABLE_INTRODUCTION)
167
-
168
- with gr.Row():
169
- search_bar = gr.Textbox(
170
- placeholder="Search models...",
171
- show_label=False,
172
- elem_id="search-bar"
173
- )
174
-
175
- min_size, max_size = get_size_range(df)
176
-
177
- with gr.Row():
178
- min_size_slider = gr.Slider(
179
- minimum=min_size,
180
- maximum=max_size,
181
- value=min_size,
182
- step=0.1,
183
- label="Minimum number of parameters (B)",
184
- )
185
- max_size_slider = gr.Slider(
186
- minimum=min_size,
187
- maximum=max_size,
188
- value=max_size,
189
- step=0.1,
190
- label="Maximum number of parameters (B)",
191
- )
192
-
193
- with gr.Row():
194
- tasks_select = gr.CheckboxGroup(
195
- choices=TASKS_V1,
196
- value=TASKS_V1,
197
- label="Select tasks to Display",
198
- elem_id="tasks-select"
199
- )
200
-
201
- data_component = gr.components.Dataframe(
202
- value=df[COLUMN_NAMES],
203
- headers=COLUMN_NAMES,
204
- type="pandas",
205
- datatype=DATA_TITLE_TYPE,
206
- interactive=False,
207
- visible=True,
208
- max_height=2400,
209
- )
210
-
211
- refresh_button = gr.Button("Refresh")
212
-
213
- def update_with_tasks(*args):
214
- return update_table(*args)
215
-
216
- search_bar.change(
217
- fn=update_with_tasks,
218
- inputs=[search_bar, min_size_slider, max_size_slider, tasks_select],
219
- outputs=data_component
220
- )
221
- min_size_slider.change(
222
- fn=update_with_tasks,
223
- inputs=[search_bar, min_size_slider, max_size_slider, tasks_select],
224
- outputs=data_component
225
- )
226
- max_size_slider.change(
227
- fn=update_with_tasks,
228
- inputs=[search_bar, min_size_slider, max_size_slider, tasks_select],
229
- outputs=data_component
230
- )
231
- tasks_select.change(
232
- fn=update_with_tasks,
233
- inputs=[search_bar, min_size_slider, max_size_slider, tasks_select],
234
- outputs=data_component
235
- )
236
- refresh_button.click(fn=refresh_data, outputs=data_component)
237
-
238
 
239
  block.launch(share=True)
 
153
  with gr.Row():
154
  gr.Markdown(SUBMIT_INTRODUCTION, elem_classes="markdown-text")
155
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
157
  block.launch(share=True)