frogcho123 commited on
Commit
278e4f7
1 Parent(s): db99fbb
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from tempfile import NamedTemporaryFile
8
  # Define translation function
9
  def translate_audio(input_file, target_language):
10
  # Save uploaded audio file to a temporary file
11
- with NamedTemporaryFile(suffix=".wav") as temp_audio:
12
  temp_audio.write(input_file.read())
13
  temp_audio.seek(0)
14
 
 
8
  # Define translation function
9
  def translate_audio(input_file, target_language):
10
  # Save uploaded audio file to a temporary file
11
+ with NamedTemporaryFile(suffix=".mp3") as temp_audio:
12
  temp_audio.write(input_file.read())
13
  temp_audio.seek(0)
14