File size: 992 Bytes
4c6879b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

echo "Updating package list..."
sudo apt update

echo "Installing required system dependencies..."
sudo apt install -y git wget ffmpeg  # Added ffmpeg


echo "Upgrading pip..."
pip install --upgrade pip

echo "Installing Python dependencies..."
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git
pip install transformers torch numpy gitpython  
pip install whisper  # Explicitly installing Whisper
pip install bitsandbytes accelerate 
pip install gradio
pip install yt_dlp tiktoken
echo "Cloning IndicTrans2 repository..."
if [ ! -d "IndicTrans2" ]; then
    git clone https://github.com/AI4Bharat/IndicTrans2
else
    echo "IndicTrans2 already exists, skipping clone."
fi

echo "Navigating to IndicTrans2 directory..."
cd IndicTrans2/huggingface_interface || exit

echo "Running IndicTrans2 install script..."
bash install.sh
cd..
echo "Setup complete! You can now use Whisper, IndicTrans2, and Gradio."