Spaces:
Running
Running
Amir Mahla
commited on
Commit
·
ea7380e
1
Parent(s):
c5fe3f3
FIX sandbox limit reached to often
Browse files
cua2-core/src/cua2_core/app.py
CHANGED
|
@@ -21,7 +21,7 @@ async def lifespan(app: FastAPI):
|
|
| 21 |
if not os.getenv("HF_TOKEN"):
|
| 22 |
raise ValueError("HF_TOKEN is not set")
|
| 23 |
|
| 24 |
-
num_workers = int(os.getenv("NUM_WORKERS", "
|
| 25 |
max_sandboxes = int(600 / num_workers)
|
| 26 |
|
| 27 |
websocket_manager = WebSocketManager()
|
|
|
|
| 21 |
if not os.getenv("HF_TOKEN"):
|
| 22 |
raise ValueError("HF_TOKEN is not set")
|
| 23 |
|
| 24 |
+
num_workers = int(os.getenv("NUM_WORKERS", "1"))
|
| 25 |
max_sandboxes = int(600 / num_workers)
|
| 26 |
|
| 27 |
websocket_manager = WebSocketManager()
|