Spaces:
Paused
Paused
Commit
·
46f8dfe
1
Parent(s):
36f3374
updated
Browse files- Dockerfile +7 -8
- README.md +1 -2
Dockerfile
CHANGED
@@ -1,21 +1,20 @@
|
|
1 |
-
# Use NVIDIA
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
7 |
# Install dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
-
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
-
#
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
15 |
|
16 |
-
# Copy app
|
17 |
COPY . /app
|
18 |
WORKDIR /app
|
19 |
|
20 |
-
|
21 |
-
CMD ["python3", "app.py"]
|
|
|
1 |
+
# Use NVIDIA image with PyTorch, CUDA, cuDNN preinstalled
|
2 |
+
FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
|
3 |
|
4 |
+
# Enable non-interactive install
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
7 |
# Install dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
+
git ffmpeg libsndfile1 python3-dev \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
+
# Copy and install Python dependencies
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
15 |
|
16 |
+
# Copy app files
|
17 |
COPY . /app
|
18 |
WORKDIR /app
|
19 |
|
20 |
+
CMD ["python3", "app.py"]
|
|
README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
---
|
2 |
-
title: Codingo
|
3 |
sdk: docker
|
4 |
app_file: app.py
|
5 |
-
python_version: "3.10"
|
6 |
hardware: gpu
|
7 |
---
|
|
|
1 |
---
|
2 |
+
title: Codingo
|
3 |
sdk: docker
|
4 |
app_file: app.py
|
|
|
5 |
hardware: gpu
|
6 |
---
|