Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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 |
)
|