Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def save_and_play_audio(audio_recorder):
|
|
62 |
filename = save_and_play_audio(audio_recorder)
|
63 |
if filename is not None:
|
64 |
if st.button("Transcribe"):
|
65 |
-
transcription = transcribe_audio(
|
66 |
st.write(transcription)
|
67 |
|
68 |
def chat_with_model(prompt, document_section):
|
|
|
62 |
filename = save_and_play_audio(audio_recorder)
|
63 |
if filename is not None:
|
64 |
if st.button("Transcribe"):
|
65 |
+
transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
|
66 |
st.write(transcription)
|
67 |
|
68 |
def chat_with_model(prompt, document_section):
|