hellosara commited on
Commit
96c6e68
·
verified ·
1 Parent(s): 6bdb28a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -23,4 +23,9 @@ EXPOSE 7860
23
 
24
  # 7. Run the app
25
  # Using 7860 as the port makes it compatible with Hugging Face Spaces
26
- CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
 
 
 
 
 
23
 
24
  # 7. Run the app
25
  # Using 7860 as the port makes it compatible with Hugging Face Spaces
26
+ # Start the app with security flags to prevent the 403 AxiosError
27
+ CMD ["streamlit", "run", "app.py", \
28
+ "--server.port", "7860", \
29
+ "--server.address", "0.0.0.0", \
30
+ "--server.enableCORS", "false", \
31
+ "--server.enableXsrfProtection", "false"]