Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -370,6 +370,8 @@ def get_final_score_i2v(df, selected_columns):
|
|
| 370 |
df['Selected Score'] = selected_score
|
| 371 |
else:
|
| 372 |
df.insert(1, 'Selected Score', selected_score)
|
|
|
|
|
|
|
| 373 |
return df
|
| 374 |
|
| 375 |
|
|
@@ -571,7 +573,7 @@ def on_filter_model_size_method_change_i2v(selected_columns,vbench_team_sample,
|
|
| 571 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES_I2V.index(x)] for x in updated_headers]
|
| 572 |
# print(updated_data,present_columns,update_datatype)
|
| 573 |
filter_component = gr.components.Dataframe(
|
| 574 |
-
value=updated_data,
|
| 575 |
headers=updated_headers,
|
| 576 |
type="pandas",
|
| 577 |
datatype=update_datatype,
|
|
|
|
| 370 |
df['Selected Score'] = selected_score
|
| 371 |
else:
|
| 372 |
df.insert(1, 'Selected Score', selected_score)
|
| 373 |
+
df.loc[df.isnull().any(axis=1), ['Total Score', 'I2V Score']] = 'N.A.'
|
| 374 |
+
df.fillna('N.A.', inplace=True)
|
| 375 |
return df
|
| 376 |
|
| 377 |
|
|
|
|
| 573 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES_I2V.index(x)] for x in updated_headers]
|
| 574 |
# print(updated_data,present_columns,update_datatype)
|
| 575 |
filter_component = gr.components.Dataframe(
|
| 576 |
+
value=updated_data,
|
| 577 |
headers=updated_headers,
|
| 578 |
type="pandas",
|
| 579 |
datatype=update_datatype,
|