Spaces:
Running
Running
Commit
·
b6fdfee
1
Parent(s):
0011522
fix: add logging for received audio input type and shape in transcribe function
Browse files
app.py
CHANGED
|
@@ -26,6 +26,8 @@ def transcribe(audio, state=""):
|
|
| 26 |
print(f"Skipping invalid audio input: {type(audio)}")
|
| 27 |
return state, state
|
| 28 |
|
|
|
|
|
|
|
| 29 |
# Append NumPy array to buffer
|
| 30 |
if isinstance(audio, np.ndarray):
|
| 31 |
audio_buffer.append(audio)
|
|
|
|
| 26 |
print(f"Skipping invalid audio input: {type(audio)}")
|
| 27 |
return state, state
|
| 28 |
|
| 29 |
+
print(f"Received audio input of type: {type(audio)}")
|
| 30 |
+
print(f"Audio shape: {audio.shape if isinstance(audio, np.ndarray) else 'N/A'}")
|
| 31 |
# Append NumPy array to buffer
|
| 32 |
if isinstance(audio, np.ndarray):
|
| 33 |
audio_buffer.append(audio)
|