Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def transcribe_audio(openai_key, file_path, model):
|
|
72 |
return None
|
73 |
|
74 |
def save_and_play_audio(audio_recorder):
|
75 |
-
audio_bytes = audio_recorder()
|
76 |
if audio_bytes:
|
77 |
filename = generate_filename("Recording", "wav")
|
78 |
with open(filename, 'wb') as f:
|
|
|
72 |
return None
|
73 |
|
74 |
def save_and_play_audio(audio_recorder):
|
75 |
+
audio_bytes = st.sidebar.audio_recorder()
|
76 |
if audio_bytes:
|
77 |
filename = generate_filename("Recording", "wav")
|
78 |
with open(filename, 'wb') as f:
|