moevis commited on
Commit
2f29e43
·
verified ·
1 Parent(s): 6396aa3

Update start_gradio.sh

Browse files
Files changed (1) hide show
  1. start_gradio.sh +0 -14
start_gradio.sh CHANGED
@@ -42,20 +42,6 @@ download_model() {
42
  elif command -v huggingface-cli &> /dev/null; then
43
  echo "[Download] 使用 huggingface-cli"
44
  huggingface-cli download "$MODEL_REPO" --local-dir "$MODEL_DIR" --local-dir-use-symlinks False
45
- else
46
- echo "[Download] 使用 python + huggingface_hub"
47
- python3 -c "
48
- import os
49
- from huggingface_hub import snapshot_download
50
- print('开始下载: $MODEL_REPO')
51
- snapshot_download(
52
- repo_id='$MODEL_REPO',
53
- local_dir='$MODEL_DIR',
54
- local_dir_use_symlinks=False,
55
- cache_dir='$HF_HOME'
56
- )
57
- print('下载完成')
58
- "
59
  fi
60
  }
61
 
 
42
  elif command -v huggingface-cli &> /dev/null; then
43
  echo "[Download] 使用 huggingface-cli"
44
  huggingface-cli download "$MODEL_REPO" --local-dir "$MODEL_DIR" --local-dir-use-symlinks False
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  fi
46
  }
47