CoolFace
Apppublic

KitHung/intern_LlamaIndex

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
README.md57 linesDownload Raw Back to root
1---2title: Intern LlamaIndex3emoji: ⚡4colorFrom: green5colorTo: green6sdk: streamlit7sdk_version: 1.40.18app_file: app.py9pinned: false10license: apache-2.011---12 13Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference14 15 16## Installation of dependencies17### Sentence Transformer18```Bash19touch download_hf.py20```21 22download_hf.py23```python24import os25 26# 设置环境变量27os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'28 29# 下载模型30os.system('huggingface-cli download --resume-download sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 --local-dir /root/model/sentence-transformer')31```32 33download34```shell35python download_hf.py36```37 38 39### paraphrase-multilingual-MiniLM-L12-v240```shell41mkdir /root/model42git lfs install43git clone https://www.modelscope.cn/Ceceliachenen/paraphrase-multilingual-MiniLM-L12-v2.git44```45 46 47### NLTK 48```shell49cd /root50git clone https://gitee.com/yzy0612/nltk_data.git  --branch gh-pages51cd nltk_data52mv packages/*  ./53cd tokenizers54unzip punkt.zip55cd ../taggers56unzip averaged_perceptron_tagger.zip57```