Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,11 +51,13 @@ def deepgram_transcribe(audio_file):
|
|
51 |
|
52 |
response = deepgram.listen.prerecorded.v("1").transcribe_url(audio_file, options)
|
53 |
print(response.to_json(indent=4))
|
|
|
|
|
54 |
|
55 |
except Exception as e:
|
56 |
print(f"Exception: {e}")
|
57 |
|
58 |
-
|
59 |
|
60 |
def assemblyai_transcribe(audio_file):
|
61 |
import assemblyai as aai
|
|
|
51 |
|
52 |
response = deepgram.listen.prerecorded.v("1").transcribe_url(audio_file, options)
|
53 |
print(response.to_json(indent=4))
|
54 |
+
return response
|
55 |
+
|
56 |
|
57 |
except Exception as e:
|
58 |
print(f"Exception: {e}")
|
59 |
|
60 |
+
|
61 |
|
62 |
def assemblyai_transcribe(audio_file):
|
63 |
import assemblyai as aai
|