2023-02-01 04:53:41 +00:00
|
|
|
echo "Downloading and converting models to ONNX format..."
|
2023-03-09 03:38:51 +00:00
|
|
|
python -m onnx_web.convert ^
|
|
|
|
--sources ^
|
|
|
|
--diffusion ^
|
|
|
|
--upscaling ^
|
|
|
|
--correction ^
|
2023-03-09 03:43:02 +00:00
|
|
|
--token=%HF_TOKEN% %ONNX_WEB_EXTRA_ARGS%
|
2023-02-01 04:53:41 +00:00
|
|
|
|
|
|
|
echo "Launching API server..."
|
2023-02-28 02:08:52 +00:00
|
|
|
flask --app="onnx_web.main:run" run --host=0.0.0.0
|