Matthias Kleiner commited on
Commit
282a613
1 Parent(s): b9923b7

change queue

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -41,7 +41,6 @@ def func(file, number_of_pages, secret):
41
 
42
  date_string = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
43
 
44
- print(file)
45
  # use only the filename form an absolute path basename
46
  dir, filename = os.path.split(file)
47
  print(f"dir: {dir}, filename: {filename}")
@@ -162,5 +161,5 @@ if __name__ == "__main__":
162
  genereate_slides_btn = gr.Button("Generate slides")
163
  genereate_slides_btn.click(fn=func, inputs=[upload_button, number_of_pages, secret], outputs=output, api_name="genereate_slides")
164
 
165
- demo.queue(max_size=5)
166
  demo.launch()
 
41
 
42
  date_string = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
43
 
 
44
  # use only the filename form an absolute path basename
45
  dir, filename = os.path.split(file)
46
  print(f"dir: {dir}, filename: {filename}")
 
161
  genereate_slides_btn = gr.Button("Generate slides")
162
  genereate_slides_btn.click(fn=func, inputs=[upload_button, number_of_pages, secret], outputs=output, api_name="genereate_slides")
163
 
164
+ demo.queue(max_size=30)
165
  demo.launch()