Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
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.
|
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 |
)
|