Ais
commited on
Commit
Β·
294be8d
1
Parent(s):
48b2ebf
π Fix start.sh to run app.main FastAPI server
Browse files
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.
|
|
|
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
|