Yermek68 commited on
Commit
ae867e7
·
verified ·
1 Parent(s): df47ba0

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +12 -3
entrypoint.sh CHANGED
@@ -1,11 +1,20 @@
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
 
 
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
+