ktejeshnaidu commited on
Commit
7f5bdfd
·
verified ·
1 Parent(s): 463568d

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +7 -5
run.sh CHANGED
@@ -1,9 +1,11 @@
1
  #!/bin/bash
2
 
3
- # HuggingFace Spaces uses this script to start the application
4
- # Run Streamlit on port 7860 (HuggingFace default)
5
 
 
6
  streamlit run app.py \
7
- --server.port 7860 \
8
- --server.address 0.0.0.0 \
9
- --logger.level=warning
 
 
1
  #!/bin/bash
2
 
3
+ # Start FastAPI backend in background
4
+ uvicorn main:app --host 0.0.0.0 --port 8000 &
5
 
6
+ # Start Streamlit on HuggingFace's required port
7
  streamlit run app.py \
8
+ --server.port 7860 \
9
+ --server.address 0.0.0.0 \
10
+ --server.headless true \
11
+ --logger.level=warning