linoyts HF Staff commited on
Commit
6978a01
·
1 Parent(s): 227286a

Update app.py (#6)

Browse files

- Update app.py (4a82f9379d0db9cc020afb0fc67e1e56721f597d)

Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -14,6 +14,9 @@ subprocess.run([sys.executable, "-m", "pip", "install",
14
  "dwpose", "onnxruntime-gpu", "imageio[ffmpeg]", "scikit-image",
15
  "opencv-python-headless", "decord", "num2words"], check=False)
16
 
 
 
 
17
  # Reinstall torchaudio to match the torch CUDA version on this space.
18
  # controlnet_aux or other deps can pull in a CPU-only torchaudio that conflicts
19
  # with the pre-installed CUDA torch, causing "undefined symbol" errors.
 
14
  "dwpose", "onnxruntime-gpu", "imageio[ffmpeg]", "scikit-image",
15
  "opencv-python-headless", "decord", "num2words"], check=False)
16
 
17
+ # Ensure num2words is installed (required by SmolVLMProcessor)
18
+ subprocess.run([sys.executable, "-m", "pip", "install", "num2words"], check=True)
19
+
20
  # Reinstall torchaudio to match the torch CUDA version on this space.
21
  # controlnet_aux or other deps can pull in a CPU-only torchaudio that conflicts
22
  # with the pre-installed CUDA torch, causing "undefined symbol" errors.