lollms-webui/installations/download_all_personalities.sh

27 lines
512 B
Bash
Raw Normal View History

#!/bin/bash
# Set the environment name
environment_name="env"
# Activate the virtual environment
2023-06-05 05:32:40 +00:00
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
2023-05-30 10:00:51 +00:00
# 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