1
0
Fork 0
onnx-web/api/launch.sh

10 lines
254 B
Bash
Executable File

#! /bin/sh
set -eu
echo "Downloading and converting models to ONNX format..."
python3 -m onnx_web.convert --diffusion --upscaling --correction --extras --token=${HF_TOKEN:-}
echo "Launching API server..."
flask --app=onnx_web.serve run --host=0.0.0.0