whitphx HF staff commited on
Commit
1f5003f
1 Parent(s): 7657e9d

Add command line arguments such as `--server.enableXsrfProtection false` that are necessary or suitable for HF Spaces

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -20,4 +20,8 @@ WORKDIR $HOME/app
20
  COPY . $HOME/app
21
 
22
  EXPOSE 8501
23
- CMD streamlit run app.py
 
 
 
 
 
20
  COPY . $HOME/app
21
 
22
  EXPOSE 8501
23
+ CMD streamlit run app.py \
24
+ --server.headless true \
25
+ --server.enableCORS false \
26
+ --server.enableXsrfProtection false \
27
+ --server.fileWatcherType none