Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,11 +6,14 @@ import requests
|
|
| 6 |
from huggingface_hub import webhook_endpoint, WebhookPayload
|
| 7 |
from gradio import Interface
|
| 8 |
|
|
|
|
|
|
|
|
|
|
| 9 |
# Configuration
|
| 10 |
GOOGLE_API_KEY = 'AIzaSyAYXUMnwmR4nUGDCs97FJJsafcQAPAAuzE'
|
| 11 |
BOT_TOKEN = '7484321656:AAFaswxTqaSHu_s4jd_pk2Q2OJJWYcWHwAM'
|
| 12 |
WEBHOOK_URL = f"https://measmonysuon-flyingbird.hf.space/webhooks/handle_update"
|
| 13 |
-
WEBHOOK_SECRET = '
|
| 14 |
|
| 15 |
# Initialize the Telegram bot
|
| 16 |
bot = telebot.TeleBot(BOT_TOKEN)
|
|
|
|
| 6 |
from huggingface_hub import webhook_endpoint, WebhookPayload
|
| 7 |
from gradio import Interface
|
| 8 |
|
| 9 |
+
# Suppress experimental warnings
|
| 10 |
+
os.environ['HF_HUB_DISABLE_EXPERIMENTAL_WARNING'] = '1'
|
| 11 |
+
|
| 12 |
# Configuration
|
| 13 |
GOOGLE_API_KEY = 'AIzaSyAYXUMnwmR4nUGDCs97FJJsafcQAPAAuzE'
|
| 14 |
BOT_TOKEN = '7484321656:AAFaswxTqaSHu_s4jd_pk2Q2OJJWYcWHwAM'
|
| 15 |
WEBHOOK_URL = f"https://measmonysuon-flyingbird.hf.space/webhooks/handle_update"
|
| 16 |
+
WEBHOOK_SECRET = 'A3&c8!jP#xZ1v*Qw5kL^0tR@u9%yS6' # Define your webhook secret here
|
| 17 |
|
| 18 |
# Initialize the Telegram bot
|
| 19 |
bot = telebot.TeleBot(BOT_TOKEN)
|