test
Browse files
app.py
CHANGED
@@ -231,6 +231,7 @@ def show_predictions_tab(model_list, dataset_list, predictions):
|
|
231 |
|
232 |
return this_predictions
|
233 |
|
|
|
234 |
model_list = [i['abbr'] for i in model_list]
|
235 |
initial_predictions = get_pre_df(predictions, 'MiniMax-Text-01', 'IFEval')
|
236 |
|
@@ -253,9 +254,24 @@ def show_predictions_tab(model_list, dataset_list, predictions):
|
|
253 |
value=initial_predictions,
|
254 |
interactive=False,
|
255 |
wrap=False,
|
|
|
256 |
column_widths=calculate_column_widths(initial_predictions),
|
257 |
)
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
with gr.Row():
|
260 |
with gr.Accordion("Citation", open=False):
|
261 |
citation_button = gr.Textbox(
|
|
|
231 |
|
232 |
return this_predictions
|
233 |
|
234 |
+
|
235 |
model_list = [i['abbr'] for i in model_list]
|
236 |
initial_predictions = get_pre_df(predictions, 'MiniMax-Text-01', 'IFEval')
|
237 |
|
|
|
254 |
value=initial_predictions,
|
255 |
interactive=False,
|
256 |
wrap=False,
|
257 |
+
max_height=1000,
|
258 |
column_widths=calculate_column_widths(initial_predictions),
|
259 |
)
|
260 |
|
261 |
+
|
262 |
+
model_drop.change(
|
263 |
+
fn=get_pre_df,
|
264 |
+
inputs=[predictions, model_drop, dataset_drop],
|
265 |
+
outputs=table,
|
266 |
+
)
|
267 |
+
|
268 |
+
dataset_drop.change(
|
269 |
+
fn=get_pre_df,
|
270 |
+
inputs=[predictions, model_drop, dataset_drop],
|
271 |
+
outputs=table,
|
272 |
+
)
|
273 |
+
|
274 |
+
|
275 |
with gr.Row():
|
276 |
with gr.Accordion("Citation", open=False):
|
277 |
citation_button = gr.Textbox(
|