Spaces:
Sleeping
Sleeping
Update pages/🧠_sickle_cell_chatbot.py
Browse files
pages/🧠_sickle_cell_chatbot.py
CHANGED
|
@@ -106,7 +106,7 @@ class ContextChatbot:
|
|
| 106 |
|
| 107 |
def transcribe_audio(_self, audio_bytes):
|
| 108 |
#llm = ChatOpenAI(model_name=_self.openai_model, temperature=0, streaming=True)
|
| 109 |
-
response =
|
| 110 |
model="whisper-1",
|
| 111 |
file=("temp." + "wav", audio_bytes, "audio/wav"),
|
| 112 |
)
|
|
|
|
| 106 |
|
| 107 |
def transcribe_audio(_self, audio_bytes):
|
| 108 |
#llm = ChatOpenAI(model_name=_self.openai_model, temperature=0, streaming=True)
|
| 109 |
+
response = _self.openai_model.audio.transcriptions.create(
|
| 110 |
model="whisper-1",
|
| 111 |
file=("temp." + "wav", audio_bytes, "audio/wav"),
|
| 112 |
)
|