Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 ./
|
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):
|