naman1102 commited on
Commit
fd7f7b9
·
1 Parent(s): e2f7458

Update tools.py

Browse files
Files changed (1) hide show
  1. tools.py +1 -1
tools.py CHANGED
@@ -257,7 +257,7 @@ def audio_transcriber_tool(state: AgentState) -> AgentState:
257
  raise RuntimeError("OPENAI_API_KEY is not set in environment.")
258
 
259
  with open(local_audio, "rb") as audio_file:
260
- response = openai.Audio.transcriptions.create(
261
  file=audio_file,
262
  model="whisper-1"
263
  )
 
257
  raise RuntimeError("OPENAI_API_KEY is not set in environment.")
258
 
259
  with open(local_audio, "rb") as audio_file:
260
+ response = openai.transcriptions.create(
261
  file=audio_file,
262
  model="whisper-1"
263
  )