frdel commited on
Commit
f30ff77
·
1 Parent(s): c91f666

preload adjustments

Browse files
Files changed (2) hide show
  1. docker/run/fs/exe/run_A0.sh +1 -1
  2. preload.py +3 -3
docker/run/fs/exe/run_A0.sh CHANGED
@@ -4,7 +4,7 @@
4
  . "/ins/copy_A0.sh" "$@"
5
 
6
  python /a0/prepare.py --dockerized=true
7
- python /a0/preload.py --dockerized=true
8
 
9
  echo "Starting A0..."
10
  exec python /a0/run_ui.py \
 
4
  . "/ins/copy_A0.sh" "$@"
5
 
6
  python /a0/prepare.py --dockerized=true
7
+ # python /a0/preload.py --dockerized=true # no need to run preload if it's done during container build
8
 
9
  echo "Starting A0..."
10
  exec python /a0/run_ui.py \
preload.py CHANGED
@@ -42,9 +42,9 @@ async def preload():
42
  # async tasks to preload
43
  tasks = [
44
  preload_embedding(),
45
- # preload_whisper(),
46
- # preload_kokoro()
47
- ] # no longer preload kokoro and whisper, do it JIT
48
 
49
  await asyncio.gather(*tasks, return_exceptions=True)
50
  PrintStyle().print("Preload completed")
 
42
  # async tasks to preload
43
  tasks = [
44
  preload_embedding(),
45
+ preload_whisper(),
46
+ preload_kokoro()
47
+ ]
48
 
49
  await asyncio.gather(*tasks, return_exceptions=True)
50
  PrintStyle().print("Preload completed")