Spaces:
Runtime error
Runtime error
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 | |