fix Windows entrypoint
This commit is contained in:
parent
06f06f5a11
commit
61373d530a
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue