From 40f4c92bf4d26180494f99f438596d85fbf98c62 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Wed, 14 May 2025 08:45:45 -0600 Subject: [PATCH] Remove anaconda dependency --- .python-version | 1 + installnotes.bash | 17 ++++++++--------- words.py | 24 ++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/installnotes.bash b/installnotes.bash index 62bc924..76dd878 100644 --- a/installnotes.bash +++ b/installnotes.bash @@ -1,17 +1,16 @@ +# On macOS and Linux. +curl -LsSf https://astral.sh/uv/install.sh | sh +# On Windows. +powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" -conda init -conda create --name prompt-guard python=3.12 -c conda-forge -conda activate prompt-guard +uv venv --python 3.12.0 #cuda -pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 +uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126 #or cpu -pip install torch --index-url https://download.pytorch.org/whl/cpu +uv pip install torch --index-url https://download.pytorch.org/whl/cpu -pip install -U "huggingface_hub[cli]" -# install transformers -pip install -U transformers -pip install -U tiktoken +uv pip install -U "huggingface_hub[cli]" transformers tiktoken huggingface-cli login diff --git a/words.py b/words.py index 9cccaf7..09d5ab9 100644 --- a/words.py +++ b/words.py @@ -1,4 +1,28 @@ words4 = [ + "animalética", # Likely Spanish/Portuguese "animalética" (animal ethics) + "Description", # English + "precunion", # Potentially English, though less common. Could be a neologism. + "ref", # English (common abbreviation for reference) + "Speaker", # English + "Keywords", # English + "correction", # English + "better", # English + "许 可证号" # Chinese (許可證號 - license number) + "previous", + "code", + "electro", + "voltage", + "back", + "subject", + "requirements", + "reach", + "project", + "telephone", + "ión", + "alisations", + "movies", + "better", + "recommend" "ocular", "spell", "License",