Update main.py
Browse files
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
|