leonardlin commited on
Commit
f929d3a
1 Parent(s): 82d8190

limit responses

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -97,6 +97,7 @@ chat_interface = gr.ChatInterface(
97
  additional_inputs=[
98
  gr.Textbox(system_prompt, label="System Prompt (Change the language of the prompt for better replies)"),
99
  ],
 
100
  )
101
 
102
  # https://huggingface.co/spaces/ysharma/Explore_llamav2_with_TGI/blob/main/app.py#L219 - we use this with construction b/c Gradio barfs on autoreload otherwise
 
97
  additional_inputs=[
98
  gr.Textbox(system_prompt, label="System Prompt (Change the language of the prompt for better replies)"),
99
  ],
100
+ concurrency_limit=1,
101
  )
102
 
103
  # https://huggingface.co/spaces/ysharma/Explore_llamav2_with_TGI/blob/main/app.py#L219 - we use this with construction b/c Gradio barfs on autoreload otherwise