Spaces:
No application file
No application file
Update app.py (#6)
Browse files- Update app.py (4a82f9379d0db9cc020afb0fc67e1e56721f597d)
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.
|