Spaces:
Sleeping
Sleeping
pre-download qwen model at launch
Browse files
app.py
CHANGED
@@ -10,6 +10,14 @@ import tempfile
|
|
10 |
import re
|
11 |
from pathlib import Path
|
12 |
from faster_whisper import WhisperModel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Load Whisper fine-tuned for zh_tw
|
15 |
@st.cache_resource
|
|
|
10 |
import re
|
11 |
from pathlib import Path
|
12 |
from faster_whisper import WhisperModel
|
13 |
+
from huggingface_hub import hf_hub_download
|
14 |
+
|
15 |
+
hf_hub_download(
|
16 |
+
repo_id="Qwen/Qwen2.5-3B-Instruct-GGUF",
|
17 |
+
filename="qwen2.5-3b-instruct-q2_k.gguf",
|
18 |
+
local_dir="./models",
|
19 |
+
)
|
20 |
+
|
21 |
|
22 |
# Load Whisper fine-tuned for zh_tw
|
23 |
@st.cache_resource
|