measmonysuon commited on
Commit
29d049b
·
verified ·
1 Parent(s): 83ae8bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,18 +1,18 @@
1
  import telebot
2
  import google.generativeai as genai
3
  import logging
4
- import requests
5
  import gradio as gr
6
  from dotenv import load_dotenv
7
  import os
8
 
9
- load_dotenv() # Load environment variables from .env file
 
10
 
11
- GOOGLE_API_KEY = os.getenv('GOOGLE_API_KEY')
12
- BOT_TOKEN = os.getenv('BOT_TOKEN')
 
13
  WEBHOOK_URL = f"https://measmonysuon-flyingbird.hf.space/webhooks/handle_update"
14
 
15
-
16
  # Initialize the Telegram bot
17
  bot = telebot.TeleBot(BOT_TOKEN)
18
 
 
1
  import telebot
2
  import google.generativeai as genai
3
  import logging
 
4
  import gradio as gr
5
  from dotenv import load_dotenv
6
  import os
7
 
8
+ # Load environment variables from .env file
9
+ load_dotenv()
10
 
11
+ # Environment variables
12
+ GOOGLE_API_KEY = os.getenv('GOOGLE_API')
13
+ BOT_TOKEN = os.getenv('BOT_API')
14
  WEBHOOK_URL = f"https://measmonysuon-flyingbird.hf.space/webhooks/handle_update"
15
 
 
16
  # Initialize the Telegram bot
17
  bot = telebot.TeleBot(BOT_TOKEN)
18