Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
#
|
2 |
|
3 |
import pandas as pd
|
4 |
import gradio as gr
|
@@ -9,7 +9,8 @@ CSV_PATH = "collated_results.csv" # Place your CSV file here
|
|
9 |
|
10 |
df = pd.read_csv(CSV_PATH).reset_index(drop=True)
|
11 |
|
12 |
-
# Prepare dropdown choices
|
|
|
13 |
metric_choices = ["num_params_B", "flops_G", "time_plain_s", "mem_plain_GB", "time_compile_s", "mem_compile_GB"]
|
14 |
group_choices = ["scenario"]
|
15 |
|
|
|
1 |
+
# Thanks ChatGPT for pairing.
|
2 |
|
3 |
import pandas as pd
|
4 |
import gradio as gr
|
|
|
9 |
|
10 |
df = pd.read_csv(CSV_PATH).reset_index(drop=True)
|
11 |
|
12 |
+
# Prepare dropdown choices
|
13 |
+
model_choices = sorted(df['model_cls'].dropna().unique().tolist())
|
14 |
metric_choices = ["num_params_B", "flops_G", "time_plain_s", "mem_plain_GB", "time_compile_s", "mem_compile_GB"]
|
15 |
group_choices = ["scenario"]
|
16 |
|