3v324v23 commited on
Commit
dc291f8
1 Parent(s): 0c10cbe

Initial commit

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,12 +14,12 @@ import time
14
  import os
15
 
16
  def start_server():
17
- os.system("python -m spacy download en_core_web_sm")
18
  os.system("uvicorn InferenceServer:app --port 8080 --host 0.0.0.0 --workers 1")
19
 
20
  def load_models():
21
  if not is_port_in_use(8080):
22
  with st.spinner(text="Loading models, please wait..."):
 
23
  proc = Process(target=start_server, args=(), daemon=True)
24
  proc.start()
25
  while not is_port_in_use(8080):
 
14
  import os
15
 
16
  def start_server():
 
17
  os.system("uvicorn InferenceServer:app --port 8080 --host 0.0.0.0 --workers 1")
18
 
19
  def load_models():
20
  if not is_port_in_use(8080):
21
  with st.spinner(text="Loading models, please wait..."):
22
+ os.system("python -m spacy download en_core_web_sm")
23
  proc = Process(target=start_server, args=(), daemon=True)
24
  proc.start()
25
  while not is_port_in_use(8080):