Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def voice_conversion(apikey, ta, audio, choice1):
|
|
166 |
audio = whisper.load_audio(audio)
|
167 |
audio = whisper.pad_or_trim(audio)
|
168 |
|
169 |
-
# make log-Mel spectrogram and move to the same device as the
|
170 |
mel = whisper.log_mel_spectrogram(audio).to(model1.device)
|
171 |
|
172 |
# detect the spoken language
|
|
|
166 |
audio = whisper.load_audio(audio)
|
167 |
audio = whisper.pad_or_trim(audio)
|
168 |
|
169 |
+
# make log-Mel spectrogram and move to the same device as the model
|
170 |
mel = whisper.log_mel_spectrogram(audio).to(model1.device)
|
171 |
|
172 |
# detect the spoken language
|