Commit
•
c1f39f8
1
Parent(s):
fceefe7
Updating the secret
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ FREQUENCY = os.environ.get("FREQUENCY", '').lower()
|
|
19 |
if FREQUENCY not in ["daily", "hourly"]:
|
20 |
raise gr.Error("FREQUENCY environment variable must be 'daily' or 'hourly'")
|
21 |
|
22 |
-
|
23 |
|
24 |
logger = setup_logger(__name__)
|
25 |
|
@@ -129,7 +129,7 @@ with gr.Blocks() as ui:
|
|
129 |
with gr.Column():
|
130 |
output_text = gr.Textbox(label="Output Text")
|
131 |
|
132 |
-
app = WebhooksServer(ui=ui, webhook_secret=
|
133 |
|
134 |
|
135 |
@app.add_webhook("/community")
|
|
|
19 |
if FREQUENCY not in ["daily", "hourly"]:
|
20 |
raise gr.Error("FREQUENCY environment variable must be 'daily' or 'hourly'")
|
21 |
|
22 |
+
WEBHOOK_SECRET = os.getenv("HF_WEBHOOK_SECRET", 'secret')
|
23 |
|
24 |
logger = setup_logger(__name__)
|
25 |
|
|
|
129 |
with gr.Column():
|
130 |
output_text = gr.Textbox(label="Output Text")
|
131 |
|
132 |
+
app = WebhooksServer(ui=ui, webhook_secret=WEBHOOK_SECRET)
|
133 |
|
134 |
|
135 |
@app.add_webhook("/community")
|