zykrix commited on
Commit
cc7493a
·
1 Parent(s): 18b2f85

fix: bind Streamlit to correct Render port

Browse files
Files changed (1) hide show
  1. start.sh +4 -4
start.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/bash
2
 
3
- # Optional: install missing spaCy model manually (if not auto-installed)
4
- python -m spacy download en_core_web_md
5
 
6
- # Start Streamlit app
7
- streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
 
1
  #!/bin/bash
2
 
3
+ # Ensure the PORT Render expects is used
4
+ export PORT=${PORT:-8501}
5
 
6
+ # Run Streamlit binding to the correct host and port
7
+ streamlit run app.py --server.port=$PORT --server.address=0.0.0.0