lvkaokao commited on
Commit
3df3fbb
1 Parent(s): c9d8990
Files changed (1) hide show
  1. app.py +16 -5
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import os
2
- os.system("pip install gradio==3.28.0")
3
 
4
  import gradio as gr
5
  import pandas as pd
@@ -500,11 +500,22 @@ 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
- # demo.queue(default_concurrency_limit=40).launch()
505
- # demo.queue(concurrency_count=40).launch()
506
  demo.queue(
507
- concurrency_count=100, status_update_rate=10
508
  ).launch(
509
- max_threads=100
510
  )
 
 
 
 
 
 
 
1
  import os
2
+ os.system("pip install gradio==3.28.0 pydantic==1.10.15")
3
 
4
  import gradio as gr
5
  import pandas as pd
 
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
+ # demo.queue(concurrency_count=40).launch()
521
+ demo.queue().launch()