Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
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:
|