Spaces:
Running
on
Zero
Running
on
Zero
devingulliver
commited on
Commit
•
78a3e26
1
Parent(s):
9f13a48
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,10 @@ import os.path
|
|
6 |
import urllib.request
|
7 |
import whisper
|
8 |
|
|
|
9 |
urllib.request.urlretrieve(
|
10 |
"https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt",
|
11 |
-
|
12 |
)
|
13 |
|
14 |
writer = whisper.utils.get_writer("srt", "/dev/null")
|
|
|
6 |
import urllib.request
|
7 |
import whisper
|
8 |
|
9 |
+
os.makedirs("/home/user/.cache/whisper")
|
10 |
urllib.request.urlretrieve(
|
11 |
"https://openaipublic.azureedge.net/main/whisper/models/e5b1a55b89c1367dacf97e3e19bfd829a01529dbfdeefa8caeb59b3f1b81dadb/large-v3.pt",
|
12 |
+
"/home/user/.cache/whisper/large-v3.pt"
|
13 |
)
|
14 |
|
15 |
writer = whisper.utils.get_writer("srt", "/dev/null")
|