ynhe commited on
Commit
651bda2
1 Parent(s): 7340433

[fix] fix git

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -192,8 +192,8 @@ def get_final_score_quality(df, selected_columns):
192
  return df
193
 
194
  def get_baseline_df():
195
- # submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
196
- # submission_repo.git_pull()
197
  df = pd.read_csv(CSV_DIR)
198
  df = get_final_score(df, checkbox_group.value)
199
  df = df.sort_values(by="Selected Score", ascending=False)
@@ -203,8 +203,8 @@ def get_baseline_df():
203
  return df
204
 
205
  def get_baseline_df_quality():
206
- # submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
207
- # submission_repo.git_pull()
208
  df = pd.read_csv(QUALITY_DIR)
209
  df = get_final_score_quality(df, checkbox_group_quality.value)
210
  df = df.sort_values(by="Selected Score", ascending=False)
@@ -214,8 +214,8 @@ def get_baseline_df_quality():
214
  return df
215
 
216
  def get_baseline_df_i2v():
217
- # submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
218
- # submission_repo.git_pull()
219
  df = pd.read_csv(I2V_DIR)
220
  df = get_final_score_i2v(df, checkbox_group_i2v.value)
221
  df = df.sort_values(by="Selected Score", ascending=False)
 
192
  return df
193
 
194
  def get_baseline_df():
195
+ submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
196
+ submission_repo.git_pull()
197
  df = pd.read_csv(CSV_DIR)
198
  df = get_final_score(df, checkbox_group.value)
199
  df = df.sort_values(by="Selected Score", ascending=False)
 
203
  return df
204
 
205
  def get_baseline_df_quality():
206
+ submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
207
+ submission_repo.git_pull()
208
  df = pd.read_csv(QUALITY_DIR)
209
  df = get_final_score_quality(df, checkbox_group_quality.value)
210
  df = df.sort_values(by="Selected Score", ascending=False)
 
214
  return df
215
 
216
  def get_baseline_df_i2v():
217
+ submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
218
+ submission_repo.git_pull()
219
  df = pd.read_csv(I2V_DIR)
220
  df = get_final_score_i2v(df, checkbox_group_i2v.value)
221
  df = df.sort_values(by="Selected Score", ascending=False)