gabrielchua commited on
Commit
8034ef8
1 Parent(s): 2da79b0

fix concurrency

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -139,8 +139,9 @@ demo = gr.Interface(
139
  ],
140
  allow_flagging="never",
141
  api_name="generate_podcast", # Add this line
142
- theme=gr.themes.Soft()
 
143
  )
144
 
145
  if __name__ == "__main__":
146
- demo.queue(concurrency_count=3).launch(show_api=True) # Add queue with concurrency of 5 and show API
 
139
  ],
140
  allow_flagging="never",
141
  api_name="generate_podcast", # Add this line
142
+ theme=gr.themes.Soft(),
143
+ concurrency_limit=5
144
  )
145
 
146
  if __name__ == "__main__":
147
+ demo.launch(show_api=True)