mirror of
https://github.com/wassname/Castor.git
synced 2026-08-20 12:00:37 +08:00
* 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
23 lines
343 B
Bash
Executable File
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
|