Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -391,15 +391,6 @@ with gr.Blocks(
|
|
391 |
# CPU cpu_count=2 16G, model 7G
|
392 |
# CPU UPGRADE cpu_count=8 32G, model 7G
|
393 |
|
394 |
-
# does not work
|
395 |
-
_ = """
|
396 |
-
# _ = int(psutil.virtual_memory().total / 10**9 // file_size - 1)
|
397 |
-
# concurrency_count = max(_, 1)
|
398 |
-
if psutil.cpu_count(logical=False) >= 8:
|
399 |
-
# concurrency_count = max(int(32 / file_size) - 1, 1)
|
400 |
-
else:
|
401 |
-
# concurrency_count = max(int(16 / file_size) - 1, 1)
|
402 |
-
# """
|
403 |
|
404 |
concurrency_count = 14
|
405 |
logger.info(f"{concurrency_count=}")
|
|
|
391 |
# CPU cpu_count=2 16G, model 7G
|
392 |
# CPU UPGRADE cpu_count=8 32G, model 7G
|
393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
|
395 |
concurrency_count = 14
|
396 |
logger.info(f"{concurrency_count=}")
|