blasisd commited on
Commit
bf8155b
·
1 Parent(s): 441c6e3

Set concurrency_limit for stream to 1 to prevent overlapping executions

Browse files
Files changed (1) hide show
  1. src/app.py +1 -1
src/app.py CHANGED
@@ -208,7 +208,7 @@ with gr.Blocks(
208
  ReplyOnPause(translate_audio),
209
  inputs=[audio, target_lang],
210
  outputs=[audio],
211
- # concurrency_limit=20 if get_space() else None,
212
  )
213
 
214
  # Sticky footer (will stay at bottom on all screen sizes)
 
208
  ReplyOnPause(translate_audio),
209
  inputs=[audio, target_lang],
210
  outputs=[audio],
211
+ concurrency_limit=1, # Important: Set to 1 to prevent overlapping executions
212
  )
213
 
214
  # Sticky footer (will stay at bottom on all screen sizes)