Yermek68 commited on
Commit
5ac23ad
·
verified ·
1 Parent(s): 93830a2

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +11 -16
entrypoint.sh CHANGED
@@ -1,20 +1,15 @@
1
  #!/usr/bin/env bash
2
- set -e
3
-
4
- echo "🔧 HF-runtime override: установка фиксированных версий зависимостей..."
5
- pip install --no-cache-dir --upgrade pip
6
 
 
7
  pip install --force-reinstall --no-cache-dir \
8
- "gradio==4.41.0" \
9
- "transformers==4.46.0" \
10
- "huggingface-hub==0.23.4" \
11
- "torch==2.4.1" \
12
- "fastapi==0.115.0" \
13
- "uvicorn==0.30.6" \
14
- "langdetect==1.0.9"
15
-
16
- python -c "import gradio, transformers, huggingface_hub, torch; print('✅ Все зависимости успешно установлены!')"
17
-
18
- echo "🚀 Запускаем приложение..."
19
  exec python app.py
20
-
 
1
  #!/usr/bin/env bash
2
+ set -euo pipefail
 
 
 
3
 
4
+ echo "🔧 HF-runtime override: reinstalling locked deps ..."
5
  pip install --force-reinstall --no-cache-dir \
6
+ gradio==4.41.0 \
7
+ transformers==4.46.0 \
8
+ huggingface-hub==0.23.4 \
9
+ torch==2.4.1 \
10
+ fastapi==0.115.0 \
11
+ uvicorn==0.30.6 \
12
+ langdetect==1.0.9
13
+
14
+ python -c "import gradio, transformers, huggingface_hub, torch; print('✅ All OK')"
 
 
15
  exec python app.py