LocalAI/extra/grpc/sam/run.sh
Aisuko edcae7a5f1 Add sam support
Signed-off-by: GitHub <noreply@github.com>
2023-11-06 18:50:47 +11:00

13 lines
No EOL
308 B
Bash
Executable file

#!/bin/bash
##
## A bash script wrapper that runs the sam server with conda
export PATH=$PATH:/opt/conda/bin
# Activate conda environment
source activate sam
# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
python $DIR/sam.py $@