quivr/backend/scripts/start.sh
Matt d9b2be19d7
feat: start script (#367)
* feat: start script

* make faster
2023-06-23 14:20:03 +02:00

22 lines
565 B
Bash
Executable File

#!/bin/bash
# Check if gpt4all is already installed
if ! pip show gpt4all > /dev/null; then
if [[ $PRIVATE == "True" ]]; then
apt-get install -y liblzma-dev cmake
cd /tmp && git clone --recurse-submodules https://github.com/nomic-ai/gpt4all
cd gpt4all/gpt4all-backend/
mkdir build && cd build
cmake .. && cmake --build . --parallel
cd ../../gpt4all-bindings/python
pip3 install -e .
fi
fi
# Move to the code directory
cd /code
# Start your app
uvicorn main:app --reload --host 0.0.0.0 --port 5050