Spaces:
Sleeping
Sleeping
frogcho123
commited on
Commit
·
19f9d93
1
Parent(s):
30318a6
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def translate_voice(file, target_lang):
|
|
9 |
model = whisper.load_model("base").float()
|
10 |
|
11 |
# Load the audio
|
12 |
-
audio = whisper.load_audio(
|
13 |
|
14 |
# Pad or trim the audio
|
15 |
audio = whisper.pad_or_trim(audio)
|
|
|
9 |
model = whisper.load_model("base").float()
|
10 |
|
11 |
# Load the audio
|
12 |
+
audio = whisper.load_audio(file)
|
13 |
|
14 |
# Pad or trim the audio
|
15 |
audio = whisper.pad_or_trim(audio)
|