mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-21 13:17:47 +00:00
27 lines
512 B
Bash
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 |