Gary10 commited on
Commit
4265309
·
verified ·
1 Parent(s): 6bb73d5

SONICS detect API (FastAPI wrapper, SpecTTTra-alpha-120s)

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -11,9 +11,9 @@ ENV HOME=/home/user \
11
  HF_HOME=/home/user/.cache/huggingface
12
  WORKDIR /home/user/app
13
 
14
- RUN pip install --no-cache-dir --user torch --index-url https://download.pytorch.org/whl/cpu && \
15
- pip install --no-cache-dir --user librosa soundfile numpy fastapi "uvicorn[standard]" python-multipart huggingface_hub timm pandas && \
16
- pip install --no-cache-dir --user git+https://github.com/awsaf49/sonics.git
17
 
18
  # Bake model weights into the image so cold starts skip the download.
19
  RUN python -c "from sonics import HFAudioClassifier; HFAudioClassifier.from_pretrained('awsaf49/sonics-spectttra-alpha-120s')"
 
11
  HF_HOME=/home/user/.cache/huggingface
12
  WORKDIR /home/user/app
13
 
14
+ RUN pip install --no-cache-dir --user torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
15
+ pip install --no-cache-dir --user librosa soundfile numpy fastapi "uvicorn[standard]" python-multipart huggingface_hub timm pandas matplotlib tqdm scikit-learn fvcore && \
16
+ pip install --no-cache-dir --user --no-deps git+https://github.com/awsaf49/sonics.git
17
 
18
  # Bake model weights into the image so cold starts skip the download.
19
  RUN python -c "from sonics import HFAudioClassifier; HFAudioClassifier.from_pretrained('awsaf49/sonics-spectttra-alpha-120s')"