SeyhaLite commited on
Commit
c4bebae
·
verified ·
1 Parent(s): 399220a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -554,7 +554,7 @@ def webhook():
554
  @app.route("/", methods=["GET"])
555
  def setup_webhook():
556
  # Replace with your Hugging Face Space URL once known
557
- space_url = os.getenv("SPACE_URL", "https://your-username-your-space-name.hf.space")
558
  webhook_url = f"{space_url}/webhook"
559
  application.bot.set_webhook(webhook_url)
560
  return f"Webhook set to {webhook_url}!", 200
 
554
  @app.route("/", methods=["GET"])
555
  def setup_webhook():
556
  # Replace with your Hugging Face Space URL once known
557
+ space_url = os.getenv("SPACE_URL", "https://seyhalite-aihavin.hf.space")
558
  webhook_url = f"{space_url}/webhook"
559
  application.bot.set_webhook(webhook_url)
560
  return f"Webhook set to {webhook_url}!", 200