diff --git a/deploy.sh b/deploy.sh index 1f58f7b..f934f51 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,6 +4,6 @@ cd .. cp ./conjurer/bot.py ./Conjurer/ cp ./conjurer/settings.json ./Conjurer/ cp ./conjurer/system_gpt_settings.json ./Conjurer/ -cp ./conjurer/start.sh ./Conjurer/ +cp ./conjurer/install.sh ./Conjurer/ cp ./conjurer/requirements.txt ./Conjurer/requirements.txt sudo systemctl restart conjurer.service diff --git a/file_webservice/conjurer_musician.py b/file_webservice/conjurer_musician.py index 25abc47..a48b90d 100644 --- a/file_webservice/conjurer_musician.py +++ b/file_webservice/conjurer_musician.py @@ -112,6 +112,9 @@ def waitress_run(): """ serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS) +def waitress_run(): + serve(app, host="0.0.0.0", port=5000) + if __name__ == "__main__": logger = logging.getLogger('conjurer_musician') logger.setLevel(logging.DEBUG) diff --git a/install.sh b/install.sh deleted file mode 100755 index 897b743..0000000 --- a/install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -python3 -m venv /home/pi/Conjurer/env -source ./env/bin/activate -./env/bin/python3 -m pip install --upgrade pip -./env/bin/python3 -m pip install -r requirements.txt -sed -i -e 's/os.rename/shutil.copy/g' ./env/lib/python3.11/site-packages/spotify_dl/youtube.py -sed -i '1i\import shutil' ./env/lib/python3.11/site-packages/spotify_dl/youtube.py -deactivate -sudo systemctl restart conjurer.service diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 9b0e1c0..0000000 --- a/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -discord -yt_dlp -spotify_dl -spotipy -openai -eyed3 -numpy -pdf2image -PyPDF2 -requests -spotipy -tiktoken \ No newline at end of file