ynhe commited on
Commit
034c9c9
·
verified ·
1 Parent(s): 02c890a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -372,7 +372,7 @@ def get_final_score_i2v(df, selected_columns):
372
  else:
373
  df.insert(1, 'Selected Score', selected_score)
374
  # df.loc[df[9:].isnull().any(axis=1), ['Total Score', 'I2V Score']] = 'N.A.'
375
- mask = df.iloc[:, 8:].isnull().any(axis=1)
376
  df.loc[mask, ['Total Score', 'I2V Score']] = np.nan
377
  # df.fillna('N.A.', inplace=True)
378
  return df
@@ -927,7 +927,7 @@ with block:
927
  with gr.Column():
928
  input_file_i2v = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
929
  submit_button_i2v = gr.Button("Submit Eval")
930
- submit_succ_button_i2v = gr.Markdown("Submit Success! Please press refresh and return to LeaderBoard!", visible=False)
931
  fail_textbox_i2v = gr.Markdown('<span style="color:red;">Please ensure that the `Model Name`, `Project Page`, and `Email` are filled in correctly.</span>', elem_classes="markdown-text",visible=False)
932
 
933
 
 
372
  else:
373
  df.insert(1, 'Selected Score', selected_score)
374
  # df.loc[df[9:].isnull().any(axis=1), ['Total Score', 'I2V Score']] = 'N.A.'
375
+ mask = df.iloc[:, 5:-5].isnull().any(axis=1)
376
  df.loc[mask, ['Total Score', 'I2V Score']] = np.nan
377
  # df.fillna('N.A.', inplace=True)
378
  return df
 
927
  with gr.Column():
928
  input_file_i2v = gr.components.File(label = "Click to Upload a ZIP File", file_count="single", type='binary')
929
  submit_button_i2v = gr.Button("Submit Eval")
930
+ submit_succ_button_i2v = gr.Markdown("Submit Success! Please press refresh and retfurn to LeaderBoard!", visible=False)
931
  fail_textbox_i2v = gr.Markdown('<span style="color:red;">Please ensure that the `Model Name`, `Project Page`, and `Email` are filled in correctly.</span>', elem_classes="markdown-text",visible=False)
932
 
933