Spaces:
Running
Running
another fix
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_completion(messages, model="gpt-3.5-turbo"):
|
|
15 |
|
16 |
def transcribe(audio_path):
|
17 |
audio_file = open(audio_path, "rb")
|
18 |
-
transcript = openai.Audio.
|
19 |
return transcript["text"]
|
20 |
|
21 |
|
|
|
15 |
|
16 |
def transcribe(audio_path):
|
17 |
audio_file = open(audio_path, "rb")
|
18 |
+
transcript = openai.Audio.translate_raw("whisper-1", audio_file, filename = '1.mp3')
|
19 |
return transcript["text"]
|
20 |
|
21 |
|