Spaces:
Running
Running
File size: 1,586 Bytes
524a99c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
#!/bin/bash
# List of packages to be installed
packages=(
wheel
gputil
streamlit
streamlit-extras
streamlit-elements==0.1.*
plotly
google-api-python-client
wikipedia
PyMuPDF
craft-text-detector
pyyaml
Pillow
bitsandbytes
accelerate
mapboxgl
pandas
matplotlib
matplotlib-inline
tqdm
openai
langchain
langchain-community
langchain-core
langchain_mistralai
langchain_openai
langchain_google_genai
langchain_experimental
jsonformer
vertexai
ctransformers
google-cloud-aiplatform
tiktoken
llama-cpp-python
openpyxl
google-generativeai
google-cloud-storage
google-cloud-vision
opencv-python
chromadb
chroma-migrate
InstructorEmbedding
transformers
sentence-transformers
seaborn
dask
psutil
py-cpuinfo
Levenshtein
fuzzywuzzy
opencage
geocoder
pycountry_convert
)
# Function to install a single package
install_package() {
package=$1
echo "Installing $package..."
pip3 install $package
if [ $? -ne 0 ]; then
echo "Failed to install $package"
exit 1
fi
}
# Install each package individually
for package in "${packages[@]}"; do
install_package $package
done
echo "All packages installed successfully."
echo "Cloning and installing LLaVA..."
cd vouchervision
git clone https://github.com/haotian-liu/LLaVA.git
cd LLaVA # Assuming you want to run pip install in the LLaVA directory
pip install -e .
git pull
pip install -e .
echo "LLaVA ready"
|