derek-thomas HF staff commited on
Commit
1dbf6b5
1 Parent(s): d2c3b6c

Debugging again

Browse files
Files changed (2) hide show
  1. main.py +2 -2
  2. utilities/user_defined_functions.py +2 -2
main.py CHANGED
@@ -66,8 +66,8 @@ def schedule_periodic_task():
66
  elif frequency == 'daily':
67
  start_time = '05:00'
68
  logger.info(f'Scheduling tasks to run every day at: {start_time} UTC+00')
69
- schedule.every().day.at('08:33').do(main)
70
- schedule.every().day.at('08:37').do(main)
71
  # schedule.every().day.at(start_time).do(main)
72
 
73
  while True:
 
66
  elif frequency == 'daily':
67
  start_time = '05:00'
68
  logger.info(f'Scheduling tasks to run every day at: {start_time} UTC+00')
69
+ schedule.every().day.at('13:34').do(main)
70
+ schedule.every().day.at('13:35').do(main)
71
  # schedule.every().day.at(start_time).do(main)
72
 
73
  while True:
utilities/user_defined_functions.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  from datetime import datetime
3
 
4
  import pandas as pd
5
- from datasets import Dataset, DatasetDict, load_dataset, VerificationMode
6
  from huggingface_hub import login
7
 
8
  from utilities.data_processing import data_processing
@@ -57,7 +57,7 @@ def load_or_create_dataset():
57
  # Load the existing dataset from the Hugging Face hub or create a new one
58
  try:
59
  logger.debug(f"Trying to download {dataset_name}")
60
- dataset = load_dataset(dataset_name, verification_mode=VerificationMode.ALL_CHECKS)
61
  logger.debug("Loading existing dataset")
62
  except FileNotFoundError:
63
  logger.warning("Creating new dataset")
 
2
  from datetime import datetime
3
 
4
  import pandas as pd
5
+ from datasets import Dataset, DatasetDict, load_dataset, VerificationMode, DownloadMode
6
  from huggingface_hub import login
7
 
8
  from utilities.data_processing import data_processing
 
57
  # Load the existing dataset from the Hugging Face hub or create a new one
58
  try:
59
  logger.debug(f"Trying to download {dataset_name}")
60
+ dataset = load_dataset(dataset_name, verification_mode=VerificationMode.ALL_CHECKS, download_mode=DownloadMode.FORCE_REDOWNLOAD)
61
  logger.debug("Loading existing dataset")
62
  except FileNotFoundError:
63
  logger.warning("Creating new dataset")