Spaces:
Sleeping
Sleeping
Upload myinfer_latest.py
Browse files46 unmodified lines47484950515253548 unmodified lines63646566676846 unmodified linesos.environ["TEMP"] = tmpsplit_model="htdemucs"convert_voice_lock = Lock()# Define the maximum number of concurrent requestsMAX_CONCURRENT_REQUESTS = 2 # Adjust this number as needed# Initialize the semaphore with the maximum number of concurrent requestsrequest_semaphore = Semaphore(MAX_CONCURRENT_REQUESTS)8 unmodified linesACCESS_ID = os.getenv('ACCESS_ID', '')SECRET_KEY = os.getenv('SECRET_KEY', '')#set_start_method('spawn', force=True)from lib.infer_pack.models import (SynthesizerTrnMs256NSFsid,46 unmodified lines4748495051525354558 unmodified lines6465666768697046 unmodified linesos.environ["TEMP"] = tmpsplit_model="htdemucs"convert_voice_lock = Lock()#concurrent= os.getenv('concurrent', '')# Define the maximum number of concurrent requestsMAX_CONCURRENT_REQUESTS = os.getenv('concurrent', '5') # Adjust this number as needed# Initialize the semaphore with the maximum number of concurrent requestsrequest_semaphore = Semaphore(MAX_CONCURRENT_REQUESTS)8 unmodified linesACCESS_ID = os.getenv('ACCESS_ID', '')SECRET_KEY = os.getenv('SECRET_KEY', '')#set_start_method('spawn', force=True)from lib.infer_pack.models import (SynthesizerTrnMs256NSFsid,
myinfer_latest.py+3-1