File size: 745 Bytes
c052c0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

OS_TYPE=$(uname -s)

if [ "$OS_TYPE" = "Darwin" ]; then
    echo "Detected macOS."
    brew install poppler
elif [ "$OS_TYPE" = "Linux" ]; then
    if [ -f /etc/os-release ]; then
        . /etc/os-release
        if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
            echo "Detected Ubuntu/Debian."
            sudo apt-get update
            sudo apt-get install -y poppler-utils
        else
            echo "Unsupported Linux distribution: $ID"
            exit 1
        fi
    else
        echo "Cannot detect Linux distribution."
        exit 1
    fi
else
    echo "Unsupported OS: $OS_TYPE"
    exit 1
fi

git clone https://github.com/soumik12345/medrag-multi-modal
cd medrag-multi-modal
pip install -U .[core]