separate and improve conversation agent
This commit is contained in:
1 parent
951ceaa05b
commit
3c3febb92d
6 files changed
+161
-109
No files matched your search
@@ -5,13 +5,17 @@ source .venv/bin/activate
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
export REPLICATE_API_TOKEN
|
||||
else
|
||||
echo "No .env file found."
|
||||
echo "Write a .env file with the variables: REPLICATE_API_TOKEN"
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
"")
|
||||
mkdir -p local-data
|
||||
data_dir=$(realpath ./local-data)
|
||||
mkdir -p $data_dir
|
||||
cd backend
|
||||
python app.py ../test-data
|
||||
python app.py $data_dir
|
||||
;;
|
||||
"cli")
|
||||
node cli/main.js "$2"
|
||||
@@ -60,8 +64,7 @@ case "$1" in
|
||||
;;
|
||||
*)
|
||||
if [ -d "$1" ]; then
|
||||
data_dir=../$1
|
||||
mkdir -p local-data
|
||||
data_dir=$(realpath $1)
|
||||
cd backend
|
||||
python app.py $data_dir
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user