mic3333 commited on
Commit
32acb38
·
1 Parent(s): 9711b92

Fix: Resolve cache permission errors in Docker

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.py +1 -1
Dockerfile CHANGED
@@ -25,7 +25,7 @@ RUN pip install --no-cache-dir -r /code/requirements.txt
25
 
26
  # Pre-download the models at build time to avoid runtime delays.
27
  # This ensures the application starts up quickly in the Space.
28
- RUN python -c "from transformers import pipeline; import whisper; pipeline('summarization', model='facebook/bart-large-cnn'); whisper.load_model('base', download_root='/code/cache')"
29
 
30
  # Copy the rest of the application code into the container
31
  COPY . /code/
 
25
 
26
  # Pre-download the models at build time to avoid runtime delays.
27
  # This ensures the application starts up quickly in the Space.
28
+ # RUN python -c "from transformers import pipeline; import whisper; pipeline('summarization', model='facebook/bart-large-cnn'); whisper.load_model('base', download_root='/code/cache')"
29
 
30
  # Copy the rest of the application code into the container
31
  COPY . /code/
app.py CHANGED
@@ -300,4 +300,4 @@ def create_interface():
300
 
301
  if __name__ == "__main__":
302
  interface = create_interface()
303
- interface.launch()
 
300
 
301
  if __name__ == "__main__":
302
  interface = create_interface()
303
+ interface.launch(server_name="0.0.0.0", server_port=7860)