OrbitMC commited on
Commit
a12d26b
·
verified ·
1 Parent(s): ac22457

Rename pre_download.py to requirements.txt

Browse files
Files changed (2) hide show
  1. pre_download.py +0 -22
  2. requirements.txt +14 -0
pre_download.py DELETED
@@ -1,22 +0,0 @@
1
- import os
2
- from huggingface_hub import hf_hub_download
3
- from transformers import AutoModel, AutoTokenizer
4
-
5
- print("Pre-downloading Qwen LLM...")
6
- hf_hub_download(
7
- repo_id="unsloth/Qwen3.5-0.8B-GGUF",
8
- filename="Qwen3.5-0.8B-UD-Q2_K_XL.gguf"
9
- )
10
-
11
- print("Pre-downloading Embeddings...")
12
- from langchain_huggingface import HuggingFaceEmbeddings
13
- HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2", model_kwargs={"device": "cpu"})
14
-
15
- print("Pre-downloading KittenTTS...")
16
- try:
17
- from kittentts import KittenTTS
18
- KittenTTS("KittenML/kitten-tts-nano-0.8-fp32")
19
- except Exception as e:
20
- print(f"TTS Download check: {e}")
21
-
22
- print("All models cached successfully!")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi==0.115.0
2
+ uvicorn[standard]==0.30.6
3
+ pydantic==2.9.2
4
+ numpy
5
+ transformers
6
+ accelerate
7
+ sentence-transformers
8
+ faiss-cpu
9
+ soundfile
10
+ langchain-huggingface
11
+ langchain-community
12
+ langchain-text-splitters
13
+ huggingface_hub
14
+ python-multipart