Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ def on_filter_model_size_method_change(selected_columns):
|
|
| 135 |
updated_headers = present_columns
|
| 136 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
|
| 137 |
# print(updated_data,present_columns,update_datatype)
|
| 138 |
-
filter_component = gr.Dataframe(
|
| 139 |
value=updated_data,
|
| 140 |
headers=updated_headers,
|
| 141 |
type="pandas",
|
|
@@ -175,7 +175,7 @@ with block:
|
|
| 175 |
interactive=True,
|
| 176 |
)
|
| 177 |
|
| 178 |
-
data_component = gr.Dataframe(
|
| 179 |
value=get_baseline_df(),
|
| 180 |
headers=COLUMN_NAMES,
|
| 181 |
type="pandas",
|
|
@@ -231,7 +231,7 @@ with block:
|
|
| 231 |
|
| 232 |
|
| 233 |
with gr.Column():
|
| 234 |
-
input_file = gr.File(label="Click to Upload a json File", file_count="single", type='
|
| 235 |
submit_button = gr.Button("Submit Eval")
|
| 236 |
|
| 237 |
submission_result = gr.Markdown()
|
|
|
|
| 135 |
updated_headers = present_columns
|
| 136 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
|
| 137 |
# print(updated_data,present_columns,update_datatype)
|
| 138 |
+
filter_component = gr.components.Dataframe(
|
| 139 |
value=updated_data,
|
| 140 |
headers=updated_headers,
|
| 141 |
type="pandas",
|
|
|
|
| 175 |
interactive=True,
|
| 176 |
)
|
| 177 |
|
| 178 |
+
data_component = gr.components.Dataframe(
|
| 179 |
value=get_baseline_df(),
|
| 180 |
headers=COLUMN_NAMES,
|
| 181 |
type="pandas",
|
|
|
|
| 231 |
|
| 232 |
|
| 233 |
with gr.Column():
|
| 234 |
+
input_file = gr.components.File(label="Click to Upload a json File", file_count="single", type='binary')
|
| 235 |
submit_button = gr.Button("Submit Eval")
|
| 236 |
|
| 237 |
submission_result = gr.Markdown()
|