Marco-Cheung
commited on
Commit
•
c380f5d
1
Parent(s):
d9ef3bd
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ max_range = np.iinfo(target_dtype).max
|
|
10 |
|
11 |
# load speech translation checkpoint
|
12 |
ASR_MODEL_NAME = 'openai/whisper-base'
|
13 |
-
asr_pipe = pipeline("automatic-speech-recognition", model=ASR_MODEL_NAME,
|
14 |
|
15 |
|
16 |
# load text-to-speech checkpoint
|
|
|
10 |
|
11 |
# load speech translation checkpoint
|
12 |
ASR_MODEL_NAME = 'openai/whisper-base'
|
13 |
+
asr_pipe = pipeline("automatic-speech-recognition", model=ASR_MODEL_NAME, device=device)
|
14 |
|
15 |
|
16 |
# load text-to-speech checkpoint
|