Streamlit-LlamaIndex-API / download_hf.py
yanyoyo
nice commit
68dd607
raw
history blame contribute delete
260 Bytes
import os
# 设置环境变量
os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'
# 下载模型
os.system('huggingface-cli download --resume-download sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 --local-dir /root/model/sentence-transformer')