freddyaboulton HF staff commited on
Commit
c681468
1 Parent(s): 6242ad8
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -130,7 +130,8 @@ with gr.Blocks(css=".code-component {max-height: 500px !important}") as demo:
130
 
131
  webrtc.stream(ReplyOnPause(generate),
132
  inputs=[webrtc, history, code],
133
- outputs=[webrtc], time_limit=90)
 
134
  webrtc.on_additional_outputs(lambda history, code: (history, code, history),
135
  outputs=[history, code, cb])
136
  code.change(display_in_sandbox, code, sandbox, queue=False)
 
130
 
131
  webrtc.stream(ReplyOnPause(generate),
132
  inputs=[webrtc, history, code],
133
+ outputs=[webrtc], time_limit=90,
134
+ concurrency_limit=10)
135
  webrtc.on_additional_outputs(lambda history, code: (history, code, history),
136
  outputs=[history, code, cb])
137
  code.change(display_in_sandbox, code, sandbox, queue=False)