Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def refresh_models():
|
|
| 143 |
image_models = [model for model in image_models if model not in ban_models]
|
| 144 |
|
| 145 |
with concurrent.futures.ThreadPoolExecutor(
|
| 146 |
-
max_workers=
|
| 147 |
) as executor:
|
| 148 |
future_to_model = {
|
| 149 |
executor.submit(
|
|
@@ -162,7 +162,7 @@ def refresh_models():
|
|
| 162 |
logging.error(f"模型 {model} 测试生成异常: {exc}")
|
| 163 |
|
| 164 |
with concurrent.futures.ThreadPoolExecutor(
|
| 165 |
-
max_workers=
|
| 166 |
) as executor:
|
| 167 |
future_to_model = {
|
| 168 |
executor.submit(
|
|
@@ -180,7 +180,7 @@ def refresh_models():
|
|
| 180 |
logging.error(f"模型 {model} 测试生成异常: {exc}")
|
| 181 |
|
| 182 |
with concurrent.futures.ThreadPoolExecutor(
|
| 183 |
-
max_workers=
|
| 184 |
) as executor:
|
| 185 |
future_to_model = {
|
| 186 |
executor.submit(
|
|
|
|
| 143 |
image_models = [model for model in image_models if model not in ban_models]
|
| 144 |
|
| 145 |
with concurrent.futures.ThreadPoolExecutor(
|
| 146 |
+
max_workers=1000
|
| 147 |
) as executor:
|
| 148 |
future_to_model = {
|
| 149 |
executor.submit(
|
|
|
|
| 162 |
logging.error(f"模型 {model} 测试生成异常: {exc}")
|
| 163 |
|
| 164 |
with concurrent.futures.ThreadPoolExecutor(
|
| 165 |
+
max_workers=1000
|
| 166 |
) as executor:
|
| 167 |
future_to_model = {
|
| 168 |
executor.submit(
|
|
|
|
| 180 |
logging.error(f"模型 {model} 测试生成异常: {exc}")
|
| 181 |
|
| 182 |
with concurrent.futures.ThreadPoolExecutor(
|
| 183 |
+
max_workers=1000
|
| 184 |
) as executor:
|
| 185 |
future_to_model = {
|
| 186 |
executor.submit(
|