Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,7 @@ pipe_asr = pipeline("automatic-speech-recognition", model=model, tokenizer=proce
|
|
61 |
|
62 |
def transcribe_function(new_chunk, state):
|
63 |
try:
|
64 |
-
sr = new_chunk
|
65 |
-
y = np.array(new_chunk['array'])
|
66 |
except TypeError:
|
67 |
print(f"Error chunk structure: {type(new_chunk)}, content: {new_chunk}")
|
68 |
return state, "", None
|
|
|
61 |
|
62 |
def transcribe_function(new_chunk, state):
|
63 |
try:
|
64 |
+
sr, y = new_chunk
|
|
|
65 |
except TypeError:
|
66 |
print(f"Error chunk structure: {type(new_chunk)}, content: {new_chunk}")
|
67 |
return state, "", None
|