Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,10 +41,10 @@ def open_image():
|
|
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(
|
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?"
|