File size: 809 Bytes
0ad96be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash

# ==========================================
# MedModel Prediction Wrapper
# ==========================================

# Default Input file
DEFAULT_INPUT="./sample_input.json"
OUTPUT_DIR="./outputs"

# Check if an input file was provided as first argument
INPUT_FILE=${1:-$DEFAULT_INPUT}

# Check if input exists
if [ ! -f "$INPUT_FILE" ]; then
    echo "Error: Input file '$INPUT_FILE' not found."
    echo "Usage: ./experiments/predict.sh [path_to_json_input]"
    exit 1
fi

echo "Starting MedModel Prediction Pipeline..."
echo "Input File: $INPUT_FILE"
echo "=========================================="

# Run the evaluation script
python ./src/evaluate.py --input_file "$INPUT_FILE" --output_dir "$OUTPUT_DIR"

echo "=========================================="
echo "Prediction finished."