Spaces:
Sleeping
Sleeping
Fix: Resolve cache permission errors in Docker
Browse files- Dockerfile +1 -1
- 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)
|