lvkaokao
commited on
Commit
·
82d5305
1
Parent(s):
3df3fbb
update
Browse files
app.py
CHANGED
@@ -500,22 +500,6 @@ scheduler = BackgroundScheduler()
|
|
500 |
scheduler.add_job(restart_space, "interval", hours=3) # restarted every 3h
|
501 |
scheduler.add_job(update_dynamic_files, "interval", hours=2) # launched every 2 hour
|
502 |
scheduler.start()
|
503 |
-
"""
|
504 |
-
host = "mlp-dgx-01.sh.intel.com"
|
505 |
-
# host = "10.112.229.197"
|
506 |
-
|
507 |
-
concurrency_count = 100
|
508 |
-
share = False
|
509 |
-
|
510 |
-
|
511 |
-
demo.queue(
|
512 |
-
concurrency_count=concurrency_count, status_update_rate=10, api_open=False
|
513 |
-
).launch(
|
514 |
-
server_name=host, share=True, max_threads=100
|
515 |
-
)
|
516 |
-
"""
|
517 |
-
|
518 |
|
519 |
# demo.queue(default_concurrency_limit=40).launch()
|
520 |
-
|
521 |
-
demo.queue().launch()
|
|
|
500 |
scheduler.add_job(restart_space, "interval", hours=3) # restarted every 3h
|
501 |
scheduler.add_job(update_dynamic_files, "interval", hours=2) # launched every 2 hour
|
502 |
scheduler.start()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
|
504 |
# demo.queue(default_concurrency_limit=40).launch()
|
505 |
+
demo.queue(concurrency_count=40).launch()
|
|