.
This commit is contained in:
15
predict.sh
Executable file
15
predict.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Arguments: script_dir working_dir tja_path difficulty
|
||||
SCRIPT_DIR=${1:-"script"}
|
||||
WORKING_DIR=${2:-"."}
|
||||
TJA_PATH=${3}
|
||||
DIFFICULTY=${4:-"oni"}
|
||||
|
||||
if [ -z "$TJA_PATH" ]; then
|
||||
echo "Usage: ./redict.sh <script_dir> <working_dir> <tja_path> [difficulty: oni|edit]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Running prediction for $TJA_PATH..."
|
||||
bun "$SCRIPT_DIR/predict.ts" "$WORKING_DIR" "$SCRIPT_DIR" "$TJA_PATH" "$DIFFICULTY"
|
||||
Reference in New Issue
Block a user