Spaces:
Runtime error
Runtime error
Update install.sh
Browse files- install.sh +25 -0
install.sh
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
echo "Verifying installations..."
|
| 2 |
python -c "import gradio; print('Gradio version:', gradio.__version__)"
|
| 3 |
python -c "import websockets; print('Websockets version:', websockets.__version__)"
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# First, completely uninstall any existing packages that might conflict
|
| 4 |
+
pip uninstall -y gradio gradio-client websockets
|
| 5 |
+
|
| 6 |
+
# Upgrade pip to the latest version
|
| 7 |
+
pip install --upgrade pip
|
| 8 |
+
|
| 9 |
+
# Install compatible versions in a specific order
|
| 10 |
+
pip install websockets==10.4
|
| 11 |
+
pip install gradio==3.35.0
|
| 12 |
+
pip install gradio-client==0.5.0
|
| 13 |
+
|
| 14 |
+
# Now install the rest of the requirements
|
| 15 |
+
pip install PyPDF2==3.0.1
|
| 16 |
+
pip install langchain==0.0.340
|
| 17 |
+
pip install faiss-cpu==1.7.4
|
| 18 |
+
pip install sentence-transformers==2.3.0
|
| 19 |
+
pip install zhipuai>=2.1.0
|
| 20 |
+
pip install transformers==4.35.2
|
| 21 |
+
pip install torch==2.1.0
|
| 22 |
+
pip install huggingface-hub==0.
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
echo "Verifying installations..."
|
| 27 |
python -c "import gradio; print('Gradio version:', gradio.__version__)"
|
| 28 |
python -c "import websockets; print('Websockets version:', websockets.__version__)"
|