Redmind commited on
Commit
4d6ac72
·
verified ·
1 Parent(s): e405399

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -51,7 +51,9 @@ def deepgram_transcribe(audio_file):
51
 
52
  response = deepgram.listen.rest.v("1").transcribe_url(audio_file, options)
53
  print(response.to_json(indent=4))
54
- return response
 
 
55
 
56
 
57
  except Exception as e:
 
51
 
52
  response = deepgram.listen.rest.v("1").transcribe_url(audio_file, options)
53
  print(response.to_json(indent=4))
54
+ transcript = response['results']['channels'][0]['alternatives'][0]['transcript']
55
+ print(transcript)
56
+ return transcript
57
 
58
 
59
  except Exception as e: