alvanlii commited on
Commit
fe10af2
1 Parent(s): 689222b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -26,7 +26,7 @@ comment_dataset_name = f"{username}/reddit-comments-{subreddit}"
26
  dataset_readme_path = "README.md"
27
 
28
  frequency = os.environ.get("FREQUENCY", '').lower()
29
- if frequency not in ["daily", "hourly"]:
30
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
31
 
32
  # Authenticate with Hugging Face using an auth token
 
26
  dataset_readme_path = "README.md"
27
 
28
  frequency = os.environ.get("FREQUENCY", '').lower()
29
+ if frequency not in ["daily", "hourly", "custom"]:
30
  raise ValueError("FREQUENCY environment variable must be 'daily' or 'hourly'")
31
 
32
  # Authenticate with Hugging Face using an auth token