Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ with block:
|
|
174 |
)
|
175 |
|
176 |
df = get_baseline_df()
|
177 |
-
data_component = gr.
|
178 |
value=df,
|
179 |
headers=COLUMN_NAMES,
|
180 |
type="pandas",
|
@@ -183,7 +183,11 @@ with block:
|
|
183 |
visible=True,
|
184 |
wrap=True
|
185 |
)
|
186 |
-
|
|
|
|
|
|
|
|
|
187 |
def on_filter_change(model_types, abilities, sort_by):
|
188 |
df = get_baseline_df()
|
189 |
# Filter by selected model types
|
@@ -323,5 +327,5 @@ with block:
|
|
323 |
outputs=[data_component, model_type_filter, ability_filter, sort_by_filter]
|
324 |
)
|
325 |
|
326 |
-
refresh_data()
|
327 |
block.launch()
|
|
|
174 |
)
|
175 |
|
176 |
df = get_baseline_df()
|
177 |
+
data_component = gr.Dataframe(
|
178 |
value=df,
|
179 |
headers=COLUMN_NAMES,
|
180 |
type="pandas",
|
|
|
183 |
visible=True,
|
184 |
wrap=True
|
185 |
)
|
186 |
+
# data_component.load(
|
187 |
+
# fn=refresh_data,
|
188 |
+
# inputs=[],
|
189 |
+
# outputs=[data_component, model_type_filter, ability_filter, sort_by_filter]
|
190 |
+
# )
|
191 |
def on_filter_change(model_types, abilities, sort_by):
|
192 |
df = get_baseline_df()
|
193 |
# Filter by selected model types
|
|
|
327 |
outputs=[data_component, model_type_filter, ability_filter, sort_by_filter]
|
328 |
)
|
329 |
|
330 |
+
# refresh_data()
|
331 |
block.launch()
|