Spaces:
Running
Running
Update entrypoint.sh
Browse files- entrypoint.sh +8 -7
entrypoint.sh
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
exec python app.py
|
| 9 |
-
|
| 10 |
-
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
set -e
|
| 3 |
+
echo "🔧 HF-runtime override: installing locked deps ..."
|
| 4 |
+
pip install --force-reinstall --no-cache-dir \
|
| 5 |
+
"gradio==4.41.0" \
|
| 6 |
+
"transformers==4.46.0" \
|
| 7 |
+
"huggingface-hub==0.23.4" \
|
| 8 |
+
"torch==2.4.1" \
|
| 9 |
+
"fastapi==0.115.0" "uvicorn==0.30.6" "langdetect==1.0.9"
|
| 10 |
+
python -c "import gradio, transformers, huggingface_hub, torch; print('✅ All OK')"
|
| 11 |
exec python app.py
|
|
|
|
|
|