Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def transcribe(audio):
|
|
| 11 |
os.rename(audio, audio_filename_with_extension)
|
| 12 |
|
| 13 |
audio_file = open(audio_filename_with_extension, "rb")
|
| 14 |
-
transcript = openai.Audio.
|
| 15 |
|
| 16 |
messages.append({"role": "user", "content": transcript["text"]})
|
| 17 |
|
|
|
|
| 11 |
os.rename(audio, audio_filename_with_extension)
|
| 12 |
|
| 13 |
audio_file = open(audio_filename_with_extension, "rb")
|
| 14 |
+
transcript = openai.Audio.transcriptions("whisper-1", audio_file)
|
| 15 |
|
| 16 |
messages.append({"role": "user", "content": transcript["text"]})
|
| 17 |
|