Delete launch-extras.sh
Deleting redundant launch scripts
This commit is contained in:
parent
f21375f9b0
commit
74dd2b82d7
|
@ -1,33 +0,0 @@
|
|||
#! /bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
if [ -n "${VIRTUAL_ENV+set}" ]; then
|
||||
echo "Using current virtual env..."
|
||||
else
|
||||
if [ -d "onnx_env" ]; then
|
||||
echo "Loading existing virtual env..."
|
||||
. onnx_env/bin/activate
|
||||
else
|
||||
echo "Creating new virtual env..."
|
||||
python -m venv onnx_env
|
||||
. onnx_env/bin/activate
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Downloading and converting models to ONNX format..."
|
||||
python3 -m onnx_web.convert \
|
||||
--sources \
|
||||
--diffusion \
|
||||
--upscaling \
|
||||
--correction \
|
||||
--extras=${ONNX_WEB_EXTRA_MODELS:-../models/extras.json} \
|
||||
--token=${HF_TOKEN:-} \
|
||||
${ONNX_WEB_EXTRA_ARGS:-}
|
||||
|
||||
echo "Launching API server..."
|
||||
waitress-serve \
|
||||
--host=0.0.0.0 \
|
||||
--port=5000 \
|
||||
--call \
|
||||
onnx_web.main:run
|
Loading…
Reference in New Issue