Ais commited on
Commit
294be8d
Β·
1 Parent(s): 48b2ebf

πŸ› Fix start.sh to run app.main FastAPI server

Browse files
Files changed (1) hide show
  1. start.sh +3 -3
start.sh CHANGED
@@ -2,12 +2,12 @@
2
 
3
  echo "πŸ“¦ Installing Python dependencies..."
4
  pip install -q --upgrade pip
5
- pip install -q torch transformers accelerate peft bitsandbytes gdown
6
 
7
  echo "βœ… Dependencies installed."
8
 
9
  echo "πŸ“‚ Downloading latest adapter from Google Drive..."
10
- python download_adapter.py
11
 
12
  echo "πŸ€– Launching AI chat server..."
13
- python main.py
 
2
 
3
  echo "πŸ“¦ Installing Python dependencies..."
4
  pip install -q --upgrade pip
5
+ pip install -q torch transformers accelerate peft bitsandbytes gdown fastapi uvicorn
6
 
7
  echo "βœ… Dependencies installed."
8
 
9
  echo "πŸ“‚ Downloading latest adapter from Google Drive..."
10
+ python app/download_adapter.py
11
 
12
  echo "πŸ€– Launching AI chat server..."
13
+ python -m uvicorn app.main:app --host 0.0.0.0 --port 7860