RajatA98 commited on
Commit
22b320d
·
verified ·
1 Parent(s): fe19082

Fix: set CORPUS_DIR so the 160-track catalog loads in the container

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -46,6 +46,11 @@ RUN python -c "from transformers import ClapModel, ClapProcessor; \
46
  ClapProcessor.from_pretrained('laion/larger_clap_music')"
47
 
48
  ENV PORT=7860 HF_HOME=/app/.hf_cache
 
 
 
 
 
49
  EXPOSE 7860
50
 
51
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
46
  ClapProcessor.from_pretrained('laion/larger_clap_music')"
47
 
48
  ENV PORT=7860 HF_HOME=/app/.hf_cache
49
+ # The corpus copy target above is /app/quality-scorer/public/corpus. The
50
+ # Python default would resolve to /quality-scorer/public/corpus inside the
51
+ # flattened container layout (parents[2] of /app/backend/api.py is /, not /app),
52
+ # so override explicitly.
53
+ ENV CORPUS_DIR=/app/quality-scorer/public/corpus
54
  EXPOSE 7860
55
 
56
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]