lollms-webui/installations/download_all_personalities.sh
2023-06-05 08:32:40 +03:00

27 lines
512 B
Bash

#!/bin/bash
# Set the environment name
environment_name="env"
# Activate the virtual environment
source "$environment_name/bin/activate"
# Change to the installations subfolder
# Run the Python script
python installations/download_all_personalities.py
# Deactivate the virtual environment
echo "deactivating"
deactivate
# Remove tmp folder
folder="tmp"
if [ -d "$folder" ]; then
echo "Folder exists. Deleting..."
rm -r "$folder"
echo "Folder deleted."
else
echo "Folder does not exist."
fi