File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,16 @@ if [ "$APP_TYPE" = "celery" ]; then
21
21
echo " Starting Celery worker..."
22
22
exec celery -A text_extract_api.celery_app worker --loglevel=info --pool=solo
23
23
else
24
+ echo " Pulling LLM models, please wait until this process is done..."
25
+ python client/cli.py llm_pull --model llama3.1
26
+ python client/cli.py llm_pull --model llama3.2-vision
27
+ echo " LLM models are ready!"
28
+
24
29
echo " Starting FastAPI app..."
25
- pid= ' '
30
+
26
31
if [ " $APP_ENV " = " production" ]; then
27
32
exec uvicorn text_extract_api.main:app --host 0.0.0.0 --port 8000 &
28
- pid=$!
29
33
else
30
34
exec uvicorn text_extract_api.main:app --host 0.0.0.0 --port 8000 --reload &
31
- pid=$!
32
35
fi
33
-
34
- sleep 5
35
-
36
- echo " Pulling LLM models, please wait until this process is done..."
37
- exec python client/cli.py llm_pull --model llama3.1
38
- exec python client/cli.py llm_pull --model llama3.2-vision
39
- echo " LLM models are ready!"
40
-
41
- wait $pid
42
36
fi
You can’t perform that action at this time.
0 commit comments