bstraehle commited on
Commit
5014f17
·
verified ·
1 Parent(s): cd14fbf

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +2 -2
crew.py CHANGED
@@ -57,10 +57,10 @@ def run_crew(question, file_path):
57
  try:
58
  # Load Whisper model (using base model by default)
59
  client = OpenAI()
60
- client.audio.transcriptions.create(
61
  file=open(file_path, "rb"),
62
  model=STT_MODEL,
63
- prompt=prompt,
64
  )
65
  return transcript.text
66
  except Exception as e:
 
57
  try:
58
  # Load Whisper model (using base model by default)
59
  client = OpenAI()
60
+ transcript = client.audio.transcriptions.create(
61
  file=open(file_path, "rb"),
62
  model=STT_MODEL,
63
+ prompt=question,
64
  )
65
  return transcript.text
66
  except Exception as e: