Skip to content

Commit

Permalink
Merge pull request #15 from KatherLab/LocalToasty-patch-1
Browse files Browse the repository at this point in the history
Fix variable names
  • Loading branch information
Avic3nna authored Mar 20, 2024
2 parents 517fef9 + 21b61c7 commit 79437dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mlcontext/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -eux

# get the directory of the script
script_dir=$(realpath "$(dirname "${0}")")

Expand Down Expand Up @@ -37,8 +39,8 @@ fi
retccl_model="$script_dir/best_ckpt.pth"
ctranspath="$script_dir/ctranspath.pth"
# check if the model file exists
if [ -f "$model" ]; then
echo "Model file already exists."
if [ -f "$retccl_model" -a -f "$ctranspath" ]; then
echo "Model files already exists."
else
# if not, download the model file using gdown
echo "Downloading model file..."
Expand Down

0 comments on commit 79437dd

Please sign in to comment.