correction bug
This commit is contained in:
@ -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 .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user