yiyixin commited on
Commit
9463452
1 Parent(s): eda507d
Files changed (2) hide show
  1. .streamlit/config.toml +4 -0
  2. Dockerfile +1 -1
.streamlit/config.toml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [server]
2
+ port = 7860
3
+ enableXsrfProtection = false
4
+ gatherUsageStats = false
Dockerfile CHANGED
@@ -35,5 +35,5 @@ RUN ./serve_grobid.sh
35
  RUN python backend.py &
36
 
37
  # Run the command to start the streamlit app
38
- CMD ["streamlit", "run", "frontend.py", "--server.address", "0.0.0.0", "--server.port", "7860"]
39
 
 
35
  RUN python backend.py &
36
 
37
  # Run the command to start the streamlit app
38
+ CMD ["streamlit", "run", "frontend.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--server.enableCORS", "true", "--server.enableXsrfProtection", "false"]
39