Merge remote-tracking branch 'hf2/main' into our_hf2
Browse files24 unmodified lines252627282930319 unmodified lines4142434445464724 unmodified linesMODEL = None # Last used modelIS_BATCHED = "facebook/MusicGen" in os.environ.get('SPACE_ID', '')MAX_BATCH_SIZE = 12BATCHED_DURATION = 15INTERRUPTING = False# We have to wrap subprocess call to clean a bit the log when using gr.make_waveform9 unmodified linessp.call = _call_nostderr# Preallocating the pool of processes.pool = ProcessPoolExecutor(4)pool.__enter__()24 unmodified lines252627282930319 unmodified lines4142434445464724 unmodified linesMODEL = None # Last used modelIS_BATCHED = "facebook/MusicGen" in os.environ.get('SPACE_ID', '')MAX_BATCH_SIZE = 6BATCHED_DURATION = 15INTERRUPTING = False# We have to wrap subprocess call to clean a bit the log when using gr.make_waveform9 unmodified linessp.call = _call_nostderr# Preallocating the pool of processes.pool = ProcessPoolExecutor(3)pool.__enter__()
app.py+2-2