Spaces:
Sleeping
Sleeping
Update pages/entity_extraction.py
Browse files
pages/entity_extraction.py
CHANGED
|
@@ -47,7 +47,7 @@ if f is not None:
|
|
| 47 |
#clip.subclip(0,60).write_audiofile("theaudio.mp3")
|
| 48 |
# try:
|
| 49 |
audio_file= open("theaudio.mp3", "rb")
|
| 50 |
-
transcript_english = openai.Audio.
|
| 51 |
model="whisper-1",
|
| 52 |
file=audio_file,temperature = 0).text
|
| 53 |
print(transcript_english)
|
|
|
|
| 47 |
#clip.subclip(0,60).write_audiofile("theaudio.mp3")
|
| 48 |
# try:
|
| 49 |
audio_file= open("theaudio.mp3", "rb")
|
| 50 |
+
transcript_english = openai.Audio.transcribe(
|
| 51 |
model="whisper-1",
|
| 52 |
file=audio_file,temperature = 0).text
|
| 53 |
print(transcript_english)
|