zyliu commited on
Commit
9fe2062
1 Parent(s): 052c741

update app.py and gradio_web_server.py

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. gradio_web_server.py +2 -2
app.py CHANGED
@@ -74,7 +74,7 @@ def main(
74
  atexit.register(worker_process.terminate)
75
  worker_port += 1
76
 
77
- time.sleep(10)
78
  gradio_process = None
79
  if run_gradio:
80
  # python gradio_web_server.py --port 10088 --controller-url http://0.0.0.0:10086
 
74
  atexit.register(worker_process.terminate)
75
  worker_port += 1
76
 
77
+ time.sleep(60 * 2)
78
  gradio_process = None
79
  if run_gradio:
80
  # python gradio_web_server.py --port 10088 --controller-url http://0.0.0.0:10086
gradio_web_server.py CHANGED
@@ -788,14 +788,14 @@ def build_demo(embed_mode):
788
  load_demo,
789
  [url_params],
790
  [state, model_selector],
791
- js=get_window_url_params,
792
  )
793
  elif args.model_list_mode == "reload":
794
  demo.load(
795
  load_demo_refresh_model_list,
796
  None,
797
  [state, model_selector],
798
- js=get_window_url_params,
799
  )
800
  else:
801
  raise ValueError(f"Unknown model list mode: {args.model_list_mode}")
 
788
  load_demo,
789
  [url_params],
790
  [state, model_selector],
791
+ js=js,
792
  )
793
  elif args.model_list_mode == "reload":
794
  demo.load(
795
  load_demo_refresh_model_list,
796
  None,
797
  [state, model_selector],
798
+ js=js,
799
  )
800
  else:
801
  raise ValueError(f"Unknown model list mode: {args.model_list_mode}")