Update app.py
Browse files
app.py
CHANGED
|
@@ -587,8 +587,9 @@ def main():
|
|
| 587 |
# Launch with extended timeout for CPU inference
|
| 588 |
demo.queue(max_size=10) # Enable queue for better handling of long-running tasks
|
| 589 |
demo.launch(
|
| 590 |
-
max_threads=
|
| 591 |
-
show_error=True # Show detailed errors
|
|
|
|
| 592 |
)
|
| 593 |
|
| 594 |
|
|
|
|
| 587 |
# Launch with extended timeout for CPU inference
|
| 588 |
demo.queue(max_size=10) # Enable queue for better handling of long-running tasks
|
| 589 |
demo.launch(
|
| 590 |
+
max_threads=5, # Limit concurrent requests
|
| 591 |
+
show_error=True, # Show detailed errors
|
| 592 |
+
share=True
|
| 593 |
)
|
| 594 |
|
| 595 |
|