Spaces:
Runtime error
Runtime error
tracking w concurrency 20
Browse files
app.py
CHANGED
|
@@ -148,8 +148,8 @@ with block:
|
|
| 148 |
|
| 149 |
|
| 150 |
if __name__ == "__main__":
|
| 151 |
-
block.queue(
|
| 152 |
-
|
| 153 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
| 154 |
).launch()
|
| 155 |
|
|
|
|
| 148 |
|
| 149 |
|
| 150 |
if __name__ == "__main__":
|
| 151 |
+
block.queue(concurrency_count=20, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
| 152 |
+
max_size=30, # Maximum number of requests that the queue processes
|
| 153 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
| 154 |
).launch()
|
| 155 |
|