Files
MeowFei ad69d3abc2 Connected to E2E pipeline (#85)
* added RetrieveSentences.py

* removed index

* connet to E2E pipeline

* updated code

* Some modification

* clean up

* config

* documentation

* added documentation

* update documentation

* update doc

* update doc

* add js

* updated documentation

* changed doc

* changed requirements.txt
2017-11-25 14:39:39 -05:00

23 lines
343 B
Bash
Executable File

#!/usr/bin/env bash
echo "Start the Flask server..."
python3 anserini_dependency/api.py --model idf &
PID_2=$!
echo "Start the JavaScript UI..."
pushd anserini_dependency/js
npm start &
PID_3=$!
popd
# clean up before exiting
function clean_up {
kill $PID_3
kill $PID_2
exit
}
trap clean_up SIGHUP SIGINT SIGTERM SIGKILL
wait