nabeel.muhammad commited on
Commit
4f627c0
·
1 Parent(s): d40e052

Fix Streamlit config for Hugging Face Spaces

Browse files
Files changed (3) hide show
  1. .dockerignore +10 -0
  2. .streamlit/config.toml +2 -1
  3. Dockerfile +1 -0
.dockerignore ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ *.log
6
+ *.zip
7
+ *.tar.gz
8
+ *.egg-info
9
+ venv/
10
+ .env
.streamlit/config.toml CHANGED
@@ -1,3 +1,4 @@
1
  [server]
2
  headless = true
3
- enableCORS = false
 
 
1
  [server]
2
  headless = true
3
+ enableCORS = false
4
+ port = 8501
Dockerfile CHANGED
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
 
13
  COPY src/ ./src/
14
 
15
  RUN pip3 install -r requirements.txt
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY requirements.txt ./
13
+ COPY .streamlit/ .streamlit/
14
  COPY src/ ./src/
15
 
16
  RUN pip3 install -r requirements.txt