Spaces:
Runtime error
Runtime error
Commit
·
c052c0a
1
Parent(s):
24e7c59
add: installation script
Browse files- install.sh +30 -0
install.sh
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
OS_TYPE=$(uname -s)
|
| 4 |
+
|
| 5 |
+
if [ "$OS_TYPE" = "Darwin" ]; then
|
| 6 |
+
echo "Detected macOS."
|
| 7 |
+
brew install poppler
|
| 8 |
+
elif [ "$OS_TYPE" = "Linux" ]; then
|
| 9 |
+
if [ -f /etc/os-release ]; then
|
| 10 |
+
. /etc/os-release
|
| 11 |
+
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
|
| 12 |
+
echo "Detected Ubuntu/Debian."
|
| 13 |
+
sudo apt-get update
|
| 14 |
+
sudo apt-get install -y poppler-utils
|
| 15 |
+
else
|
| 16 |
+
echo "Unsupported Linux distribution: $ID"
|
| 17 |
+
exit 1
|
| 18 |
+
fi
|
| 19 |
+
else
|
| 20 |
+
echo "Cannot detect Linux distribution."
|
| 21 |
+
exit 1
|
| 22 |
+
fi
|
| 23 |
+
else
|
| 24 |
+
echo "Unsupported OS: $OS_TYPE"
|
| 25 |
+
exit 1
|
| 26 |
+
fi
|
| 27 |
+
|
| 28 |
+
git clone https://github.com/soumik12345/medrag-multi-modal
|
| 29 |
+
cd medrag-multi-modal
|
| 30 |
+
pip install -U .[core]
|