1
0
Fork 0

fix Windows entrypoint

This commit is contained in:
Sean Sube 2023-02-27 20:08:52 -06:00
parent 06f06f5a11
commit 61373d530a
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
2 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@ IF "%ONNX_WEB_EXTRA_MODELS%"=="" (set ONNX_WEB_EXTRA_MODELS=extras.json)
python -m onnx_web.convert --sources --diffusion --upscaling --correction --extras=%ONNX_WEB_EXTRA_MODELS% --token=%HF_TOKEN% python -m onnx_web.convert --sources --diffusion --upscaling --correction --extras=%ONNX_WEB_EXTRA_MODELS% --token=%HF_TOKEN%
echo "Launching API server..." echo "Launching API server..."
flask --app="onnx_web.serve:run" run --host=0.0.0.0 flask --app="onnx_web.main:run" run --host=0.0.0.0

View File

@ -2,4 +2,4 @@ echo "Downloading and converting models to ONNX format..."
python -m onnx_web.convert --sources --diffusion --upscaling --correction --token=%HF_TOKEN% python -m onnx_web.convert --sources --diffusion --upscaling --correction --token=%HF_TOKEN%
echo "Launching API server..." echo "Launching API server..."
flask --app="onnx_web.serve:run" run --host=0.0.0.0 flask --app="onnx_web.main:run" run --host=0.0.0.0