Spaces:
Running
Running
Jae-Won Chung
commited on
Commit
•
6ebe7f5
1
Parent(s):
395a4be
Set app concurrency
Browse files
app.py
CHANGED
@@ -752,9 +752,7 @@ with gr.Blocks(css=custom_css) as block:
|
|
752 |
if __name__ == "__main__":
|
753 |
parser = argparse.ArgumentParser()
|
754 |
parser.add_argument("--share", action="store_true", help="Specify if sharing is enabled")
|
755 |
-
parser.add_argument("--concurrency", type=int, default=
|
756 |
|
757 |
args = parser.parse_args()
|
758 |
-
block.queue(
|
759 |
-
concurrency_count=args.concurrency, status_update_rate=10, api_open=False
|
760 |
-
).launch(share=args.share, show_error=True)
|
|
|
752 |
if __name__ == "__main__":
|
753 |
parser = argparse.ArgumentParser()
|
754 |
parser.add_argument("--share", action="store_true", help="Specify if sharing is enabled")
|
755 |
+
parser.add_argument("--concurrency", type=int, default=50)
|
756 |
|
757 |
args = parser.parse_args()
|
758 |
+
block.queue(concurrency_count=args.concurrency, api_open=False).launch(share=args.share, show_error=True)
|
|
|
|