Spaces:
Sleeping
Sleeping
Create entrypoint.sh
Browse files- entrypoint.sh +6 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -e
|
| 3 |
+
echo "🔧 Re-installing huggingface-hub==0.23.4 before runtime..."
|
| 4 |
+
pip install --force-reinstall --no-cache-dir "huggingface-hub==0.23.4"
|
| 5 |
+
python -c "import huggingface_hub, transformers; print('✅ OK: huggingface-hub', huggingface_hub.__version__)"
|
| 6 |
+
exec python app.py
|