Pijush2023 commited on
Commit
e8f10e6
·
verified ·
1 Parent(s): 23be7ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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['sampling_rate']
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