Moonfanz commited on
Commit
6b6cbd5
·
verified ·
1 Parent(s): 1b09f48

Upload 4 files

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,6 @@ import time
13
  import requests
14
  from collections import deque
15
 
16
-
17
  os.environ['TZ'] = 'Asia/Shanghai'
18
 
19
  app = Flask(__name__)
@@ -57,9 +56,10 @@ safety_settings = [
57
  "threshold": "BLOCK_NONE"
58
  },
59
  ]
 
60
  class APIKeyManager:
61
  def __init__(self):
62
- self.api_keys = re.findall(r"AIzaSy[a-zA-Z0-9]{33}", os.environ.get('KeyArray'))
63
  self.current_index = 0
64
 
65
  def get_available_key(self):
 
13
  import requests
14
  from collections import deque
15
 
 
16
  os.environ['TZ'] = 'Asia/Shanghai'
17
 
18
  app = Flask(__name__)
 
56
  "threshold": "BLOCK_NONE"
57
  },
58
  ]
59
+
60
  class APIKeyManager:
61
  def __init__(self):
62
+ self.api_keys = re.findall(r"AIzaSy[a-zA-Z0-9_-]{33}", os.environ.get('KeyArray'))
63
  self.current_index = 0
64
 
65
  def get_available_key(self):