Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def get_gemini_output(prompt, temperature=0.6):
|
|
117 |
"""
|
118 |
|
119 |
ip = IndicProcessor(inference=True)
|
120 |
-
|
121 |
|
122 |
# Commented out IPython magic to ensure Python compatibility.
|
123 |
# # %%capture
|
@@ -312,7 +312,7 @@ subprocess.run(['pip', 'install', 'numba==0.60.0'], check=True)
|
|
312 |
import librosa
|
313 |
|
314 |
def preprocess_audio(audio_path):
|
315 |
-
audio, sr = librosa.load(audio_path
|
316 |
return audio, sr
|
317 |
|
318 |
def transcribe(audio: str, lang: str):
|
|
|
117 |
"""
|
118 |
|
119 |
ip = IndicProcessor(inference=True)
|
120 |
+
|
121 |
|
122 |
# Commented out IPython magic to ensure Python compatibility.
|
123 |
# # %%capture
|
|
|
312 |
import librosa
|
313 |
|
314 |
def preprocess_audio(audio_path):
|
315 |
+
audio, sr = librosa.load(audio_path)
|
316 |
return audio, sr
|
317 |
|
318 |
def transcribe(audio: str, lang: str):
|