yangtb24 commited on
Commit
ec070f8
·
verified ·
1 Parent(s): 13afc9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -11,6 +11,9 @@ from requests.auth import HTTPBasicAuth
11
 
12
  app = Flask(__name__)
13
 
 
 
 
14
  TELEGRAM_BOT_TOKEN = os.environ.get('TELEGRAM_BOT_TOKEN')
15
  AI_API_ENDPOINT = os.environ.get('AI_API_ENDPOINT', "https://yangtb24-sone-latest.hf.space/handsome/v1/chat/completions")
16
  AI_API_KEY = os.environ.get('AI_API_KEY', "sk-handsome")
 
11
 
12
  app = Flask(__name__)
13
 
14
+ os.environ['TZ'] = 'Asia/Shanghai'
15
+ time.tzset()
16
+
17
  TELEGRAM_BOT_TOKEN = os.environ.get('TELEGRAM_BOT_TOKEN')
18
  AI_API_ENDPOINT = os.environ.get('AI_API_ENDPOINT', "https://yangtb24-sone-latest.hf.space/handsome/v1/chat/completions")
19
  AI_API_KEY = os.environ.get('AI_API_KEY', "sk-handsome")