AAdonis commited on
Commit
0487660
·
verified ·
1 Parent(s): 5517bcd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -23,9 +23,18 @@ RUN pip install --no-cache-dir -r /tmp/requirements.txt
23
  # Copy app
24
  COPY app.py /app/app.py
25
 
 
 
 
 
26
  # Set working directory
27
  WORKDIR /app
28
 
 
 
 
 
 
29
  # Run app
30
  CMD ["python", "app.py"]
31
 
 
23
  # Copy app
24
  COPY app.py /app/app.py
25
 
26
+ # Copy examples directory (create examples/ folder in your Space with default audio files)
27
+ # If examples/ doesn't exist, this will fail - create the folder and add your WAV files
28
+ COPY examples/ /app/examples/
29
+
30
  # Set working directory
31
  WORKDIR /app
32
 
33
+ # Set environment variables for optimal performance
34
+ ENV OMP_NUM_THREADS=1
35
+ ENV MKL_NUM_THREADS=1
36
+ ENV NUMEXPR_NUM_THREADS=1
37
+
38
  # Run app
39
  CMD ["python", "app.py"]
40