From 641a69b94cdb497693449d958ea0b83e4ad623ce Mon Sep 17 00:00:00 2001 From: leondavi Date: Sun, 12 May 2024 01:34:21 +0300 Subject: [PATCH] [HF] Remove NerlnetGetData.sh From now on use APIServer download method from hugging face --- NerlnetGetData.sh | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 NerlnetGetData.sh diff --git a/NerlnetGetData.sh b/NerlnetGetData.sh deleted file mode 100755 index dcc62a71..00000000 --- a/NerlnetGetData.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - - - -NERLNET_LIB="/usr/local/lib/nerlnet-lib/NErlNet/" -NERLNET_TMP="/tmp/nerlnet" -NERLNET_PREFIX="[GET_DATA]" -INPUT_DATA_DIR="$NERLNET_TMP/data" - -#GITHUB_REPO_HARAN="https://github.com/halfway258/NerlnetData/archive/refs/heads/main.zip" -GITHUB_REPO_DEFAULT="https://github.com/leondavi/NerlnetData/archive/refs/heads/master.zip" -NERLNET_DATA_UNZIP_DIRECTORY="/tmp/nerlnet/data/NerlnetData-master/nerlnet" -REPO_ZIP="master.zip" -if [ -f "$REPO_ZIP" ]; then - echo "$NERLNET_PREFIX old $REPO_ZIP removed!" - rm $REPO_ZIP -fi - -mkdir -p $NERLNET_TMP - -if [ -d "$INPUT_DATA_DIR" ]; then - echo "$NERLNET_PREFIX deleting old input data directory at $INPUT_DATA_DIR" - rm -rf $INPUT_DATA_DIR - echo "$NERLNET_PREFIX $INPUT_DATA_DIR is being generated and filled with default data" - echo "$NERLNET_PREFIX wget runs in quiet mode" - wget -q $GITHUB_REPO_DEFAULT - unzip -q master.zip -d $INPUT_DATA_DIR - rm master.zip - echo "$NERLNET_PREFIX Add input data to $INPUT_DATA_DIR" -else - echo "$NERLNET_PREFIX $INPUT_DATA_DIR is being generated and filled with default data" - echo "$NERLNET_PREFIX wget runs in quiet mode" - wget -q $GITHUB_REPO_DEFAULT - unzip -q master.zip -d $INPUT_DATA_DIR - rm master.zip - echo "$NERLNET_PREFIX Add input data to $INPUT_DATA_DIR" -fi - -echo "$NERLNET_PREFIX data is located at $NERLNET_DATA_UNZIP_DIRECTORY" \ No newline at end of file