gistillery / start2.sh
Benjamin Bossan
Try fixing timeout of space
308c6f6
raw
history blame
450 Bytes
#!/usr/bin/env bash
echo "Starting gradio app on default port 7860"
python3 demo.py &
pid_gradio=$!
echo "Starting web server"
uvicorn src.gistillery.webservice:app --port 8080 --host 0.0.0.0 &
pid_webserver=$!
# kill with ctrl-c
trap onexit INT
function onexit() {
echo "Killing background worker"
kill $pid_gradio
echo "Killing web server"
kill $pid_webserver
}
echo "Starting background worker"
python src/gistillery/worker.py