nowweb
Browse files- main_noweb.py +4 -2
main_noweb.py
CHANGED
@@ -264,11 +264,13 @@ with block:
|
|
264 |
queue=False)
|
265 |
|
266 |
if __name__ == "__main__":
|
267 |
-
block.queue(
|
268 |
concurrency_count=10, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
269 |
max_size=25, # Maximum number of requests that the queue processes
|
270 |
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.
|
271 |
) # https://www.gradio.app/guides/setting-up-a-demo-for-maximum-performance
|
272 |
-
block.launch(server_name="0.0.0.0",
|
|
|
|
|
273 |
|
274 |
|
|
|
264 |
queue=False)
|
265 |
|
266 |
if __name__ == "__main__":
|
267 |
+
block.queue(
|
268 |
concurrency_count=10, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
269 |
max_size=25, # Maximum number of requests that the queue processes
|
270 |
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.
|
271 |
) # https://www.gradio.app/guides/setting-up-a-demo-for-maximum-performance
|
272 |
+
block.launch(server_name="0.0.0.0",
|
273 |
+
share=True,
|
274 |
+
server_port=7860)
|
275 |
|
276 |
|