correction bug

This commit is contained in:
2026-02-24 15:33:05 +01:00
parent 05ddb3cac5
commit a143e27eea
2 changed files with 44 additions and 3 deletions

View File

@ -10,11 +10,15 @@ RUN apt-get update && apt-get install -y \
python3.11 python3-pip ffmpeg libsndfile1 git \
&& rm -rf /var/lib/apt/lists/*
# Installation des bibliothèques IA de base
# 1. Installer d'abord PyTorch depuis la source NVIDIA/CUDA
RUN pip3 install --no-cache-dir \
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 \
fastapi uvicorn gradio
torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu121
# 2. Installer le reste depuis le dépôt Python standard (PyPI)
RUN pip3 install --no-cache-dir \
fastapi uvicorn gradio
# Copie du code serveur
COPY server.py .