Spaces:
Running
Running
make parameter in billion level
#3
by
zhiminy
- opened
app.py
CHANGED
@@ -48,7 +48,7 @@ class TableManager:
|
|
48 |
|
49 |
# Add the #params column.
|
50 |
models = json.load(open(f"{data_dir}/models.json"))
|
51 |
-
df["parameters"] = df["model"].apply(lambda x: models[x]["params"])
|
52 |
|
53 |
# Make the first column (model) an HTML anchor to the model's website.
|
54 |
def format_model_link(model_name: str) -> str:
|
@@ -170,7 +170,7 @@ class TableManager:
|
|
170 |
def get_dropdown(self):
|
171 |
columns = self.full_df.columns.tolist()[1:]
|
172 |
return [
|
173 |
-
gr.Dropdown(choices=columns, value="parameters", label="X"),
|
174 |
gr.Dropdown(choices=columns, value="energy", label="Y"),
|
175 |
gr.Dropdown(choices=["None", *columns], label="Z (optional)"),
|
176 |
]
|
|
|
48 |
|
49 |
# Add the #params column.
|
50 |
models = json.load(open(f"{data_dir}/models.json"))
|
51 |
+
df["parameters (B)"] = df["model"].apply(lambda x: models[x]["params"])
|
52 |
|
53 |
# Make the first column (model) an HTML anchor to the model's website.
|
54 |
def format_model_link(model_name: str) -> str:
|
|
|
170 |
def get_dropdown(self):
|
171 |
columns = self.full_df.columns.tolist()[1:]
|
172 |
return [
|
173 |
+
gr.Dropdown(choices=columns, value="parameters (B)", label="X"),
|
174 |
gr.Dropdown(choices=columns, value="energy", label="Y"),
|
175 |
gr.Dropdown(choices=["None", *columns], label="Z (optional)"),
|
176 |
]
|