Skip to content

Commit

Permalink
fix bert can not download (#2944)
Browse files Browse the repository at this point in the history
Co-authored-by: ardaci <dongjie.shi@intel.com>
  • Loading branch information
pinggao187 and ardaci committed Oct 12, 2020
1 parent b7ee3e1 commit 446a36a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/get_python_packages
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ then
fi

echo "Fetching bert with ${BERT_COMMIT_ID}"
GET_COMMAND="wget -nc $FTP_URI/bert/archive/${BERT_COMMIT_ID}.zip -P $DEST_DIR"
if [ $FTP_URI ];
then
PREFIX="$FTP_URI/bert"
else
PREFIX=https://github.com/google-research/bert

fi

GET_COMMAND="wget -nc $PREFIX/archive/${BERT_COMMIT_ID}.zip -P $DEST_DIR"
echo "Running: $GET_COMMAND"
$GET_COMMAND
exit_status=$?
Expand Down

0 comments on commit 446a36a

Please sign in to comment.