Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ free_keys_global = []
|
|
| 39 |
unverified_keys_global = []
|
| 40 |
valid_keys_global = []
|
| 41 |
|
| 42 |
-
executor = concurrent.futures.ThreadPoolExecutor(max_workers=
|
| 43 |
model_key_indices = {}
|
| 44 |
|
| 45 |
request_timestamps = []
|
|
@@ -487,7 +487,7 @@ def check_tokens():
|
|
| 487 |
)
|
| 488 |
|
| 489 |
with concurrent.futures.ThreadPoolExecutor(
|
| 490 |
-
max_workers=
|
| 491 |
) as executor:
|
| 492 |
future_to_token = {
|
| 493 |
executor.submit(
|
|
@@ -643,7 +643,7 @@ def get_billing_info():
|
|
| 643 |
total_balance = 0
|
| 644 |
|
| 645 |
with concurrent.futures.ThreadPoolExecutor(
|
| 646 |
-
max_workers=
|
| 647 |
) as executor:
|
| 648 |
futures = [
|
| 649 |
executor.submit(get_credit_summary, key) for key in keys
|
|
|
|
| 39 |
unverified_keys_global = []
|
| 40 |
valid_keys_global = []
|
| 41 |
|
| 42 |
+
executor = concurrent.futures.ThreadPoolExecutor(max_workers=1000)
|
| 43 |
model_key_indices = {}
|
| 44 |
|
| 45 |
request_timestamps = []
|
|
|
|
| 487 |
)
|
| 488 |
|
| 489 |
with concurrent.futures.ThreadPoolExecutor(
|
| 490 |
+
max_workers=1000
|
| 491 |
) as executor:
|
| 492 |
future_to_token = {
|
| 493 |
executor.submit(
|
|
|
|
| 643 |
total_balance = 0
|
| 644 |
|
| 645 |
with concurrent.futures.ThreadPoolExecutor(
|
| 646 |
+
max_workers=1000
|
| 647 |
) as executor:
|
| 648 |
futures = [
|
| 649 |
executor.submit(get_credit_summary, key) for key in keys
|