Parthi07 commited on
Commit
304a464
·
verified ·
1 Parent(s): da62c2d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -10,7 +10,10 @@ COPY . .
10
  # Install Python dependencies listed in requirements.txt
11
  RUN pip3 install -r requirements.txt
12
 
 
 
 
13
  # Define the command to run the Streamlit app on port 8501 and make it accessible externally
14
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
15
 
16
  # NOTE: Disable XSRF protection for easier external access in order to make batch predictions
 
10
  # Install Python dependencies listed in requirements.txt
11
  RUN pip3 install -r requirements.txt
12
 
13
+ # Hugging Face Spaces expect Streamlit to run on port 7860
14
+ EXPOSE 7860
15
+
16
  # Define the command to run the Streamlit app on port 8501 and make it accessible externally
17
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
18
 
19
  # NOTE: Disable XSRF protection for easier external access in order to make batch predictions