frogcho123 commited on
Commit
19f9d93
1 Parent(s): 30318a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(from_file)
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)