network error
Reginald-L opened this issue · comments
Hi, thanks very much for your work. when I run the code base Development rules, got a network error, may I get your help?
- npm install --- under web_app
- add a .env.local file --- VITE_BACKEND=http://127.0.0.1:9999
- npm run dev ---- http://localhost:5173/
- error message on console
Front-end development requires starting the corresponding backend service.
pip install -r requirements.txt
python3 main.py --model lama --port 9999
Front-end development requires starting the corresponding backend service.
pip install -r requirements.txt python3 main.py --model lama --port 9999
Thanks very much for your response, I tried these instructions, but the problem is still remain. It seems that the end program is not running.
I tried running 'python3 main.py --model lama --port 9999' both before and after npm run dev
more interesting thing is: when I run 'pip install iopaint' and 'iopaint start --model lama --port 9999', then localhost:5173 network error disappears.
Executing python3 main.py --model lama --port 9999
and executing iopaint start --model lama --port 9999
should be the same. It looks like your command line didn't print any information when executing python3 main.py
, I'm not sure what the issue is.
If you do not need to modify the backend code, executing iopaint start --model lama --port 9999
indeed works as well.
Executing
python3 main.py --model lama --port 9999
and executingiopaint start --model lama --port 9999
should be the same. It looks like your command line didn't print any information when executingpython3 main.py
, I'm not sure what the issue is.If you do not need to modify the backend code, executing
iopaint start --model lama --port 9999
indeed works as well.
cool, thanks very much for your help and perfect work