Update README.md
This commit is contained in:
parent
d151968b67
commit
f71e9cfb26
@ -112,6 +112,11 @@ cd IOPaint/web_app
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Create a `.env.local` file in `web_app` and fill in the backend IP and port.
|
||||||
|
```
|
||||||
|
VITE_BACKEND=http://127.0.0.1:8080
|
||||||
|
```
|
||||||
|
|
||||||
Start front-end development environment
|
Start front-end development environment
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
npm run dev
|
||||||
@ -120,7 +125,7 @@ npm run dev
|
|||||||
Install back-end requirements and start back-end service
|
Install back-end requirements and start back-end service
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python3 main.py --model lama
|
python3 main.py --model lama --port 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can visit `http://localhost:5173/` for development. The front-end code will automatically update after being modified, but the back-end needs to restart the service after modifying the python code.
|
Then you can visit `http://localhost:5173/` for development. The front-end code will automatically update after being modified, but the back-end needs to restart the service after modifying the python code.
|
||||||
|
Loading…
Reference in New Issue
Block a user