Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def decode_tokens(token_file):
|
|
| 106 |
|
| 107 |
# Extract audio data - this should be a numpy array
|
| 108 |
audio_data = waveform[0, 0] # Shape should be [time]
|
| 109 |
-
sample_rate =
|
| 110 |
|
| 111 |
print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
|
| 112 |
|
|
@@ -155,7 +155,7 @@ def process_both(audio_path):
|
|
| 155 |
|
| 156 |
# Extract audio data - this should be a numpy array
|
| 157 |
audio_data = waveform[0, 0] # Shape should be [time]
|
| 158 |
-
sample_rate =
|
| 159 |
|
| 160 |
print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
|
| 161 |
|
|
|
|
| 106 |
|
| 107 |
# Extract audio data - this should be a numpy array
|
| 108 |
audio_data = waveform[0, 0] # Shape should be [time]
|
| 109 |
+
sample_rate = 16000
|
| 110 |
|
| 111 |
print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
|
| 112 |
|
|
|
|
| 155 |
|
| 156 |
# Extract audio data - this should be a numpy array
|
| 157 |
audio_data = waveform[0, 0] # Shape should be [time]
|
| 158 |
+
sample_rate = 16000
|
| 159 |
|
| 160 |
print(f"Audio data shape: {audio_data.shape}, dtype: {audio_data.dtype}")
|
| 161 |
|