LovnishVerma commited on
Commit
4835f79
·
verified ·
1 Parent(s): 7b052f8

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -3
start.sh CHANGED
@@ -5,7 +5,7 @@
5
  uvicorn main:app --host 0.0.0.0 --port 8000 &
6
 
7
  # 2. Start Streamlit in the foreground
8
- # We tell Streamlit to run on port 7860 (Hugging Face's default)
9
- # We override the backend URL to point to localhost:8000
10
  export BACKEND_URL="http://127.0.0.1:8000/process-resume"
11
- streamlit run app.py --server.port 7860 --server.address 0.0.0.0
 
5
  uvicorn main:app --host 0.0.0.0 --port 8000 &
6
 
7
  # 2. Start Streamlit in the foreground
8
+ # --server.enableCORS=false: Allows the browser to talk to the app from the Hugging Face URL
9
+ # --server.enableXsrfProtection=false: Fixes the 403 Forbidden error during file upload
10
  export BACKEND_URL="http://127.0.0.1:8000/process-resume"
11
+ streamlit run app.py --server.port 7860 --server.address 0.0.0.0 --server.enableCORS=false --server.enableXsrfProtection=false