nishu08 commited on
Commit
b09c486
·
verified ·
1 Parent(s): 8464aea

Deploy CodeBERT training Space

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -7
  2. requirements.txt +1 -2
Dockerfile CHANGED
@@ -1,17 +1,16 @@
1
- # Python 3.12 — avoids Gradio/pydub audioop breakage on Python 3.13
2
  FROM python:3.12-slim
3
 
4
- RUN apt-get update && apt-get install -y --no-install-recommends \
5
- build-essential \
6
- git \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
  WORKDIR /app
10
 
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
 
13
 
14
  COPY . .
15
 
16
  EXPOSE 7860
 
 
 
17
  CMD ["python", "train_space_app.py"]
 
1
+ # Python 3.12 — audioop available; avoids Python 3.13 Gradio breakage
2
  FROM python:3.12-slim
3
 
 
 
 
 
 
4
  WORKDIR /app
5
 
6
  COPY requirements.txt .
7
+ RUN pip install --no-cache-dir --upgrade pip && \
8
+ pip install --no-cache-dir -r requirements.txt
9
 
10
  COPY . .
11
 
12
  EXPOSE 7860
13
+ ENV GRADIO_SERVER_NAME=0.0.0.0
14
+ ENV GRADIO_SERVER_PORT=7860
15
+
16
  CMD ["python", "train_space_app.py"]
requirements.txt CHANGED
@@ -9,5 +9,4 @@ transformers>=4.36.0
9
  accelerate>=0.25.0
10
  datasets>=2.16.0
11
  huggingface_hub>=0.20.0
12
- gradio>=4.44.0
13
- pyaudioop>=0.3.0
 
9
  accelerate>=0.25.0
10
  datasets>=2.16.0
11
  huggingface_hub>=0.20.0
12
+ gradio>=4.44.0,<6.0.0