Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def predict(audio_file_pth, agree):
|
|
101 |
# Transcribe audio to text using OpenAI Whisper
|
102 |
try:
|
103 |
with open(speaker_wav, 'rb') as audio_file:
|
104 |
-
transcription_response = openai.
|
105 |
model="whisper-1",
|
106 |
file=audio_file,
|
107 |
response_format='text'
|
|
|
101 |
# Transcribe audio to text using OpenAI Whisper
|
102 |
try:
|
103 |
with open(speaker_wav, 'rb') as audio_file:
|
104 |
+
transcription_response = openai.audio.transcriptions.create(
|
105 |
model="whisper-1",
|
106 |
file=audio_file,
|
107 |
response_format='text'
|