CB commited on
Commit
f60ecef
·
verified ·
1 Parent(s): dfa4590

Create postBuild

Browse files
Files changed (1) hide show
  1. postBuild +17 -0
postBuild ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ # Install system ffmpeg (ensures ffmpeg binary available for ffmpeg-python and yt-dlp)
5
+ apt-get update && apt-get install -y ffmpeg
6
+
7
+ # Upgrade pip
8
+ pip install --upgrade pip
9
+
10
+ # (Optional) Install CPU-only PyTorch wheel required by phi if not already present.
11
+ # Uncomment the following line if phi installation fails due to missing torch.
12
+ # pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
13
+
14
+ # Show installed versions for debugging
15
+ echo "Python: $(python --version)"
16
+ echo "pip: $(pip --version)"
17
+ echo "ffmpeg: $(ffmpeg -version | head -n 1)"