Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ USERNAME = os.environ["USERNAME"]
|
|
14 |
DATASET_NAME = f"{USERNAME}/reddit-{SUBREDDIT}"
|
15 |
|
16 |
FREQUENCY = os.environ.get("FREQUENCY", '').lower()
|
17 |
-
if FREQUENCY not in ["daily", "hourly"]:
|
18 |
-
raise gr.Error("FREQUENCY environment variable must be 'daily' or 'hourly'")
|
19 |
|
20 |
WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
|
21 |
|
|
|
14 |
DATASET_NAME = f"{USERNAME}/reddit-{SUBREDDIT}"
|
15 |
|
16 |
FREQUENCY = os.environ.get("FREQUENCY", '').lower()
|
17 |
+
if FREQUENCY not in ["daily", "hourly", "custom"]:
|
18 |
+
raise gr.Error("FREQUENCY environment variable must be 'daily' or 'hourly' or 'custom'")
|
19 |
|
20 |
WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
|
21 |
|