ktejeshnaidu commited on
Commit
f166caf
·
verified ·
1 Parent(s): 3fe3f75

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +6 -10
run.sh CHANGED
@@ -1,13 +1,9 @@
1
  #!/bin/bash
2
 
3
- # Start the FastAPI backend in the background
4
- echo "Starting FastAPI Backend..."
5
- uvicorn backend.main:app --host 0.0.0.0 --port 8000 &
6
 
7
- # Give the backend a few seconds to boot up before launching the UI
8
- sleep 5
9
-
10
- # Start the Streamlit frontend in the foreground
11
- echo "Starting Streamlit Frontend..."
12
- export API_URL="http://127.0.0.1:8000"
13
- streamlit run frontend/app.py --server.port=8501 --server.address=0.0.0.0
 
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