π Project Setup Guide
This project supports both Hugging Face models and Ollama models.
Follow the instructions below to set up and run the project.
β‘ Quick Start + π Miniconda & Conda Environment
sudo apt update && sudo apt upgrade -y
sudo apt install -y iproute2 libgl1 nano wget unzip nvtop git git-lfs build-essential cmake \
libopenblas-dev liblapack-dev libx11-dev libgtk-3-dev libglib2.0-0
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
export PATH="$HOME/miniconda3/bin:$PATH"
conda init
source ~/.bashrc
conda create --name YT python=3.12 -y
conda activate YT
git config --global credential.helper store
git clone https://huggingface.co/WalidAlHassan/Chat-with-YouTube-Video
cd Chat-with-YouTube-Video
pip install -r requirements.txt
π€ Model Setup
πΉ If using Ollama models
curl -fsSL https://ollama.com/install.sh | sh
ollama pull nomic-embed-text-v2-moe
ollama pull gemma4:e4b
πΉ If using Hugging Face models
Create a .env file in the root directory and add:
HF_TOKEN=your_huggingface_api_key_here
β
Run!
streamlit run streamlit_app.py