Skip to content

Commit

Permalink
update requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Alias-z committed Jan 28, 2024
1 parent 212ecc3 commit c0470fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
os.makedirs('model', exist_ok=True)
os.makedirs('internlm2-chat-7b', exist_ok=True)
#download(model_repo='OpenLMLab/internlm2-chat-7b', output='internlm2-chat-7b')
download(model_repo='OpenLMLab/internlm2-chat-7b', output='internlm2-chat-7b')

os.environ['HF_ENDPOINT'] = 'https://hf-mirror.com'

hf_token = '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'

os.system(f'huggingface-cli download --force-download internlm/internlm2-chat-7b --local-dir internlm2-chat-7b --token {hf_token}')
#os.system(f'huggingface-cli download --force-download internlm/internlm2-chat-7b --local-dir internlm2-chat-7b --token {hf_token}')
os.system(f'huggingface-cli download --force-download maidalun1020/bce-embedding-base_v1 --local-dir model/bce-embedding-base_v1 --token {hf_token}')
os.system(f'huggingface-cli download --force-download maidalun1020/bce-reranker-base_v1 --local-dir model/bce-reranker-base_v1 --token {hf_token}')

Expand Down
19 changes: 7 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
pysqlite3-binary==0.5.2.post3
#streamlit==1.24.0
sentencepiece==0.1.99
accelerate==0.24.1
langchain==0.1.0
langchain-community==0.0.9
langchain-core==0.1.7
langchain==0.1.4
langchain-community==0.0.16
langchain-core==0.1.16
langdetect==1.0.9
langsmith==0.0.77
llama-index==0.9.22
langsmith==0.0.83
llama-index==0.9.6.post2
transformers==4.36.0
gradio==4.4.0
chromadb==0.4.15
Expand All @@ -18,15 +17,11 @@ sentence-transformers==2.2.2
faiss-gpu==1.7.2
regex==2023.12.25
pypdf==4.0.1
#openxlab
rpds==1.7.1
rpds-py==0.17.1
oss2
#oss2==2.18.4
oss2==2.17.0
einops==0.7.0
requests~=2.28.2


requests==2.28.2

#aiofiles==23.2.1
#aiohttp==3.9.1
Expand Down

0 comments on commit c0470fa

Please sign in to comment.