DurreSudoku commited on
Commit
61aa5a5
·
verified ·
1 Parent(s): d5e5cc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,10 +41,10 @@ def open_image():
41
 
42
 
43
  def transcribe(audio_input):
44
- sr, audio = audio_input
45
  # Transcribe the audio and split the string into a list of words
46
  try:
47
- transcribed_audio = pipe(audio)["text"]
48
  except Exception as e:
49
  logging.exception(e)
50
  return "Encountered an error. Are you sure that you recorded audio before submitting?"
 
41
 
42
 
43
  def transcribe(audio_input):
44
+
45
  # Transcribe the audio and split the string into a list of words
46
  try:
47
+ transcribed_audio = pipe(audio_input)["text"]
48
  except Exception as e:
49
  logging.exception(e)
50
  return "Encountered an error. Are you sure that you recorded audio before submitting?"