davanstrien HF staff commited on
Commit
23b3483
1 Parent(s): 8bceda0

chore: Update start_server.sh to use uv for package installation

Browse files
Files changed (1) hide show
  1. start_server.sh +3 -2
start_server.sh CHANGED
@@ -30,10 +30,11 @@ done
30
  # GPU detection and package installation
31
  if command -v nvidia-smi &> /dev/null && nvidia-smi -L; then
32
  echo "GPU detected. Installing GPU-specific Python packages."
33
- pip install --no-cache-dir -r /home/user/notebooks/requirements_gpu.txt
34
  else
35
  echo "No GPU detected. Installing CPU-specific Python packages."
36
- pip install --no-cache-dir -r /home/user/notebooks/requirements_cpu.txt
 
37
  fi
38
 
39
  JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
 
30
  # GPU detection and package installation
31
  if command -v nvidia-smi &> /dev/null && nvidia-smi -L; then
32
  echo "GPU detected. Installing GPU-specific Python packages."
33
+ uv pip install --no-cache-dir -r /home/user/notebooks/requirements_gpu.txt --system
34
  else
35
  echo "No GPU detected. Installing CPU-specific Python packages."
36
+ uv pip install --no-cache-dir -r /home/user/notebooks/requirements_cpu.txt --system
37
+
38
  fi
39
 
40
  JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"