ALVHB95 commited on
Commit
969b96b
1 Parent(s): 9a62201
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -128,9 +128,6 @@ def chat_interface(question, audio_input=None, history=None):
128
  if audio_input is not None:
129
  # Function to transcribe the audio input
130
  def transcribe(audio):
131
- # If the audio input has multiple channels, take the first channel
132
- audio = audio[:, 0] # Take the first channel
133
-
134
  # Normalize audio
135
  audio /= np.max(np.abs(audio))
136
 
 
128
  if audio_input is not None:
129
  # Function to transcribe the audio input
130
  def transcribe(audio):
 
 
 
131
  # Normalize audio
132
  audio /= np.max(np.abs(audio))
133