alvanlii commited on
Commit
a2535e1
1 Parent(s): 3976b91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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