Remove anaconda dependency
This commit is contained in:
parent
25b12a512d
commit
40f4c92bf4
3 changed files with 33 additions and 9 deletions
1
.python-version
Normal file
1
.python-version
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.12
|
||||
|
|
@ -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
|
||||
|
|
|
|||
24
words.py
24
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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue