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