Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files- myinfer_latest.py +1 -1
myinfer_latest.py
CHANGED
|
@@ -36,7 +36,7 @@ os.environ["TEMP"] = tmp
|
|
| 36 |
split_model="htdemucs"
|
| 37 |
|
| 38 |
# Define the maximum number of concurrent requests
|
| 39 |
-
MAX_CONCURRENT_REQUESTS =
|
| 40 |
|
| 41 |
# Initialize the semaphore with the maximum number of concurrent requests
|
| 42 |
request_semaphore = Semaphore(MAX_CONCURRENT_REQUESTS)
|
|
|
|
| 36 |
split_model="htdemucs"
|
| 37 |
|
| 38 |
# Define the maximum number of concurrent requests
|
| 39 |
+
MAX_CONCURRENT_REQUESTS = 2 # Adjust this number as needed
|
| 40 |
|
| 41 |
# Initialize the semaphore with the maximum number of concurrent requests
|
| 42 |
request_semaphore = Semaphore(MAX_CONCURRENT_REQUESTS)
|