Spaces:
Build error
Build error
Commit
·
897877f
1
Parent(s):
076c808
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ os.makedirs('input', exist_ok=True)
|
|
14 |
os.makedirs('separated', exist_ok=True)
|
15 |
|
16 |
print("Loading ASR model...")
|
17 |
-
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-
|
18 |
print("ASR model loaded!")
|
19 |
|
20 |
def transcribe_audio(audiopath):
|
|
|
14 |
os.makedirs('separated', exist_ok=True)
|
15 |
|
16 |
print("Loading ASR model...")
|
17 |
+
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-small", device=0 if device == "cuda" else -1)
|
18 |
print("ASR model loaded!")
|
19 |
|
20 |
def transcribe_audio(audiopath):
|