katyan010 commited on
Commit
728e90d
·
1 Parent(s): 39f64a1
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. src/streamlit_app.py +0 -1
  3. src/utils.py +0 -1
Dockerfile CHANGED
@@ -18,4 +18,4 @@ EXPOSE 8501
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
18
 
19
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
20
 
21
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
src/streamlit_app.py CHANGED
@@ -1,5 +1,4 @@
1
  import io
2
- import os
3
 
4
  from PIL import Image
5
  import streamlit as st
 
1
  import io
 
2
 
3
  from PIL import Image
4
  import streamlit as st
src/utils.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  from typing import Any, Dict, List, Optional
3
 
4
  import torch
 
 
1
  from typing import Any, Dict, List, Optional
2
 
3
  import torch