awacke1 commited on
Commit
eaf0ef7
·
1 Parent(s): 7780269

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: