Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,9 @@ import whisper
|
|
| 7 |
#from huggingface_hub import hf_hub_download
|
| 8 |
#model_path = hf_hub_download(repo_id="distil-whisper/distil-large-v3-openai", filename="model.bin")
|
| 9 |
|
|
|
|
| 10 |
import urllib
|
|
|
|
| 11 |
urllib.request.urlretrieve(
|
| 12 |
"https://openaipublic.azureedge.net/main/whisper/models/345ae4da62f9b3d59415adc60127b97c714f32e89e936602e85993674d08dcb1/medium.pt",
|
| 13 |
"/home/user/.cache/whisper/medium.pt"
|
|
|
|
| 7 |
#from huggingface_hub import hf_hub_download
|
| 8 |
#model_path = hf_hub_download(repo_id="distil-whisper/distil-large-v3-openai", filename="model.bin")
|
| 9 |
|
| 10 |
+
import os
|
| 11 |
import urllib
|
| 12 |
+
os.makedirs("/home/user/.cache/whisper")
|
| 13 |
urllib.request.urlretrieve(
|
| 14 |
"https://openaipublic.azureedge.net/main/whisper/models/345ae4da62f9b3d59415adc60127b97c714f32e89e936602e85993674d08dcb1/medium.pt",
|
| 15 |
"/home/user/.cache/whisper/medium.pt"
|