I want to increase concurrency capability, but i see source code like:
with model_lock:
segments = []
text = ""
segment_generator, info = model.transcribe(audio, beam_size=5, **options_dict)
for segment in segment_generator:
segments.append(segment)
text = text + segment.text
result = {"language": options_dict.get("language", info.language), "segments": segments, "text": text}
I want to increase concurrency capability, but i see source code like:
can i remove the lock?