jlonsako commited on
Commit
d031248
1 Parent(s): 694b487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def preprocessAudio(audioFile):
67
  if isinstance(audioFile, str): # If audioFile is a string (filepath)
68
  os.system(f"ffmpeg -y -i {audioFile} -ar 16000 ./audioToConvert.wav")
69
  else: # If audioFile is an object with a name attribute
70
- os.system(f"ffmpeg -y -i {audioFile.name} -ar 16000 ./audioToConvert.wav")
71
 
72
  #Transcribe!!!
73
  def Transcribe(file):
 
67
  if isinstance(audioFile, str): # If audioFile is a string (filepath)
68
  os.system(f"ffmpeg -y -i {audioFile} -ar 16000 ./audioToConvert.wav")
69
  else: # If audioFile is an object with a name attribute
70
+ os.system(f"ffmpeg -y -i {audioFile.name} -ar 16000 ./{audioFile.name}.wav")
71
 
72
  #Transcribe!!!
73
  def Transcribe(file):