Spaces:
Paused
Paused
Update crew.py
Browse files
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=
|
| 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:
|