ffreemt commited on
Commit
45b40bd
1 Parent(s): d93bf74

Set cache examples=False

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -171,7 +171,8 @@ with gr.Blocks(theme=seafoam, analytics_enabled=False, css=css) as demo:
171
  gr.Examples(
172
  examples=examples,
173
  inputs=[instruction],
174
- cache_examples=True,
 
175
  fn=process_example,
176
  outputs=[output],
177
  )
@@ -179,4 +180,4 @@ with gr.Blocks(theme=seafoam, analytics_enabled=False, css=css) as demo:
179
  submit.click(response, inputs=[instruction], outputs=[output])
180
  instruction.submit(response, inputs=[instruction], outputs=[output])
181
 
182
- demo.queue(concurrency_count=1).launch(debug=False, share=True)
 
171
  gr.Examples(
172
  examples=examples,
173
  inputs=[instruction],
174
+ # cache_examples=True,
175
+ cache_examples=False,
176
  fn=process_example,
177
  outputs=[output],
178
  )
 
180
  submit.click(response, inputs=[instruction], outputs=[output])
181
  instruction.submit(response, inputs=[instruction], outputs=[output])
182
 
183
+ demo.queue(concurrency_count=1, max_size=5).launch(debug=False, share=True)