cheikhaidev-ui commited on
Commit
84eda1b
·
1 Parent(s): c27655a

fix(hf): switch to port 7860 required by HF Spaces Docker

Browse files
Files changed (2) hide show
  1. .streamlit/config.toml +1 -0
  2. Dockerfile +2 -2
.streamlit/config.toml CHANGED
@@ -1,6 +1,7 @@
1
  [server]
2
  headless = true
3
  address = "0.0.0.0"
 
4
 
5
  [browser]
6
  gatherUsageStats = false
 
1
  [server]
2
  headless = true
3
  address = "0.0.0.0"
4
+ port = 7860
5
 
6
  [browser]
7
  gatherUsageStats = false
Dockerfile CHANGED
@@ -17,7 +17,7 @@ COPY .streamlit ./.streamlit
17
  RUN pip install --no-cache-dir -r requirements-hf.txt
18
 
19
  # Exposer le port
20
- EXPOSE 8501
21
 
22
  # Lancer l'application
23
- CMD ["streamlit", "run", "streamlit_app/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
17
  RUN pip install --no-cache-dir -r requirements-hf.txt
18
 
19
  # Exposer le port
20
+ EXPOSE 7860
21
 
22
  # Lancer l'application
23
+ CMD ["streamlit", "run", "streamlit_app/app.py", "--server.port=7860", "--server.address=0.0.0.0"]