Spaces:
Running
Running
Commit
Β·
8aa4f17
1
Parent(s):
78cebef
bug fix
Browse files
app.py
CHANGED
|
@@ -349,8 +349,11 @@ def read_all_data(folder_name):
|
|
| 349 |
|
| 350 |
all_data, time_list = read_all_data('data')
|
| 351 |
|
| 352 |
-
|
| 353 |
-
|
|
|
|
|
|
|
|
|
|
| 354 |
initial_models = model_size_list
|
| 355 |
initial_metric = metric_list[0]
|
| 356 |
initial_columns = get_unique_column_names(all_data)
|
|
@@ -381,7 +384,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 381 |
with gr.Tab("π Leaderboard"):
|
| 382 |
with gr.Row():
|
| 383 |
with gr.Column():
|
| 384 |
-
period_selector = gr.Dropdown(label="Period", choices=time_list, value=
|
| 385 |
model_selector = gr.CheckboxGroup(label="Model", choices=model_size_list, value=model_size_list)
|
| 386 |
metric_selector = gr.Dropdown(label="Metric", choices=metric_list, value=metric_list[0])
|
| 387 |
with gr.Column():
|
|
@@ -416,14 +419,13 @@ with gr.Blocks(css=css) as demo:
|
|
| 416 |
with gr.Tab("π MultiLang"):
|
| 417 |
gr.Markdown("## Coming soon...")
|
| 418 |
with gr.Tab("π Scaling Law"):
|
| 419 |
-
|
| 420 |
-
|
| 421 |
|
| 422 |
def update_plot(period):
|
| 423 |
new_fig = create_scaling_plot(all_data, period)
|
| 424 |
return new_fig
|
| 425 |
|
| 426 |
-
|
| 427 |
plot = gr.Plot(initial_fig)
|
| 428 |
period_selector_2.change(update_plot, inputs=period_selector_2, outputs=plot)
|
| 429 |
|
|
|
|
| 349 |
|
| 350 |
all_data, time_list = read_all_data('data')
|
| 351 |
|
| 352 |
+
time_list.sort()
|
| 353 |
+
last_period = time_list[-1]
|
| 354 |
+
|
| 355 |
+
initial_fig = create_scaling_plot(all_data, last_period)
|
| 356 |
+
initial_period = last_period
|
| 357 |
initial_models = model_size_list
|
| 358 |
initial_metric = metric_list[0]
|
| 359 |
initial_columns = get_unique_column_names(all_data)
|
|
|
|
| 384 |
with gr.Tab("π Leaderboard"):
|
| 385 |
with gr.Row():
|
| 386 |
with gr.Column():
|
| 387 |
+
period_selector = gr.Dropdown(label="Period", choices=time_list, value=last_period)
|
| 388 |
model_selector = gr.CheckboxGroup(label="Model", choices=model_size_list, value=model_size_list)
|
| 389 |
metric_selector = gr.Dropdown(label="Metric", choices=metric_list, value=metric_list[0])
|
| 390 |
with gr.Column():
|
|
|
|
| 419 |
with gr.Tab("π MultiLang"):
|
| 420 |
gr.Markdown("## Coming soon...")
|
| 421 |
with gr.Tab("π Scaling Law"):
|
| 422 |
+
print(time_list)
|
| 423 |
+
period_selector_2 = gr.Dropdown(label="Period", choices=time_list, value=last_period)
|
| 424 |
|
| 425 |
def update_plot(period):
|
| 426 |
new_fig = create_scaling_plot(all_data, period)
|
| 427 |
return new_fig
|
| 428 |
|
|
|
|
| 429 |
plot = gr.Plot(initial_fig)
|
| 430 |
period_selector_2.change(update_plot, inputs=period_selector_2, outputs=plot)
|
| 431 |
|