NEXAS commited on
Commit
0f925e7
·
verified ·
1 Parent(s): fb93cb2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -21,6 +21,5 @@ RUN pip install --no-cache-dir -r requirements.txt
21
  # Copy app code and model
22
  COPY app.py naxi_lowlight.keras /app/
23
 
24
- # Start Streamlit app
25
- # --server.address=0.0.0.0 is needed to make the app accessible from outside the container.
26
- CMD ["streamlit", "run", "app.py"]
 
21
  # Copy app code and model
22
  COPY app.py naxi_lowlight.keras /app/
23
 
24
+ # The CMD command MUST specify port 7860 for Hugging Face Spaces
25
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]