Spaces:
Runtime error
Runtime error
echo "Starting background worker" | |
python3 src/gistillery/worker.py & | |
pid_worker=$! | |
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_worker | |
echo "Killing web server" | |
kill $pid_webserver | |
} | |
echo "Starting gradio app on default port 7860" | |
python3 demo.py | |