Spaces:
Runtime error
Runtime error
app1
Browse files
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 |
|