divython commited on
Commit
7dc5a79
·
verified ·
1 Parent(s): 0626607

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -339,12 +339,11 @@ with gr.Blocks(css=custom_css, title="YouTube Video Summarizer", theme=gr.themes
339
 
340
  # Launch configuration for HuggingFace Spaces
341
  if __name__ == "__main__":
342
- demo.queue(concurrency_count=2) # Limit concurrent users for stability
343
  demo.launch(
344
  server_name="0.0.0.0",
345
  server_port=7860,
346
  share=False, # Don't need share link in HF Spaces
347
  debug=False, # Disable debug in production
348
- enable_queue=True,
349
  show_error=True
350
  )
 
339
 
340
  # Launch configuration for HuggingFace Spaces
341
  if __name__ == "__main__":
342
+ demo.queue(max_size=10) # Limit queue size for stability
343
  demo.launch(
344
  server_name="0.0.0.0",
345
  server_port=7860,
346
  share=False, # Don't need share link in HF Spaces
347
  debug=False, # Disable debug in production
 
348
  show_error=True
349
  )