Update app.py
Browse files
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")
|