Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def transcribe(audio):
|
|
15 |
audio_data = np.array(audio_data)
|
16 |
|
17 |
# Convert to mono if the audio is stereo
|
18 |
-
if audio_data.ndim > 1
|
19 |
audio_data = np.mean(audio_data, axis=0)
|
20 |
|
21 |
# Reshape the audio data to match the expected input format (1, num_samples)
|
|
|
15 |
audio_data = np.array(audio_data)
|
16 |
|
17 |
# Convert to mono if the audio is stereo
|
18 |
+
if audio_data.ndim > 1:
|
19 |
audio_data = np.mean(audio_data, axis=0)
|
20 |
|
21 |
# Reshape the audio data to match the expected input format (1, num_samples)
|