Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -50,7 +50,7 @@ logger.info("Finished loading models!")
|
|
| 50 |
# Initialize FastAPI app
|
| 51 |
app = FastAPI()
|
| 52 |
|
| 53 |
-
MAX_QUEUE_SIZE =
|
| 54 |
request_queue = asyncio.Queue(maxsize=MAX_QUEUE_SIZE)
|
| 55 |
|
| 56 |
# Define response model
|
|
|
|
| 50 |
# Initialize FastAPI app
|
| 51 |
app = FastAPI()
|
| 52 |
|
| 53 |
+
MAX_QUEUE_SIZE = 20 # Set a reasonable limit based on your system capacity
|
| 54 |
request_queue = asyncio.Queue(maxsize=MAX_QUEUE_SIZE)
|
| 55 |
|
| 56 |
# Define response model
|