Shrirang20 commited on
Commit
3a6bfc8
·
verified ·
1 Parent(s): 86a3f6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,7 +117,7 @@ def get_gemini_output(prompt, temperature=0.6):
117
  """
118
 
119
  ip = IndicProcessor(inference=True)
120
- print("IIIIIIIPPPPPPPPPPPPPPPP:::",ip)
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, sr=None, mono=True)
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):