Jay-Rajput commited on
Commit
f9ea27d
·
1 Parent(s): 84d098f

Updating preds folder name

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ scheduler = CommitScheduler(
42
  repo_type="dataset",
43
  folder_path=USERS_FOLDER, # Local folder where users are saved temporarily
44
  path_in_repo="leaders", # Path in dataset repo where predictions will be saved
45
- every=10, # Push every 240 minutes (4 hours)
46
  )
47
 
48
 
@@ -365,7 +365,7 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match):
365
  outcomes = load_data(OUTCOMES_JSON) # Load existing match outcomes
366
  # Load existing match outcomes and user data from the test split
367
  dataset = load_dataset("Jay-Rajput/DIS_IPL_Dataset", config_name="leaders")
368
- users = {item['user_name']: item for item in dataset['test']}
369
 
370
  # Directly update or add the match outcome
371
  outcome_exists = False
 
42
  repo_type="dataset",
43
  folder_path=USERS_FOLDER, # Local folder where users are saved temporarily
44
  path_in_repo="leaders", # Path in dataset repo where predictions will be saved
45
+ every=5, # Push every 240 minutes (4 hours)
46
  )
47
 
48
 
 
365
  outcomes = load_data(OUTCOMES_JSON) # Load existing match outcomes
366
  # Load existing match outcomes and user data from the test split
367
  dataset = load_dataset("Jay-Rajput/DIS_IPL_Dataset", config_name="leaders")
368
+ users = {item['user_name']: item for item in dataset['train']}
369
 
370
  # Directly update or add the match outcome
371
  outcome_exists = False