GavinHuang commited on
Commit
4be17d8
·
1 Parent(s): 692769a

fix: add debug prints for transcription type and new state in transcribe function

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -58,6 +58,7 @@ def transcribe(audio, state=""):
58
  # Handling NumPy 2.0 compatibility issue
59
  try:
60
  transcription = model.transcribe([temp_file])[0]
 
61
  except AttributeError as e:
62
  if "np.sctypes" in str(e):
63
  print("Handling NumPy 2.0 compatibility issue")
@@ -83,6 +84,7 @@ def transcribe(audio, state=""):
83
  # return state, state
84
 
85
  new_state = state + " " + transcription if state else transcription
 
86
  return new_state, new_state
87
  return state, state
88
 
 
58
  # Handling NumPy 2.0 compatibility issue
59
  try:
60
  transcription = model.transcribe([temp_file])[0]
61
+ print(type(transcription))
62
  except AttributeError as e:
63
  if "np.sctypes" in str(e):
64
  print("Handling NumPy 2.0 compatibility issue")
 
84
  # return state, state
85
 
86
  new_state = state + " " + transcription if state else transcription
87
+ print(new_state)
88
  return new_state, new_state
89
  return state, state
90