Vihang28 commited on
Commit
ae21500
·
1 Parent(s): 97f56b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,8 @@ def record_text(audio_file,api_key):
14
  audio_file = open(audio_file, "rb")
15
  transcript = client.audio.transcriptions.create(
16
  model="whisper-1",
17
- file=audio_file
 
18
  )
19
  return transcript
20
 
 
14
  audio_file = open(audio_file, "rb")
15
  transcript = client.audio.transcriptions.create(
16
  model="whisper-1",
17
+ file=audio_file,
18
+ response_format="text"
19
  )
20
  return transcript
21