vakodiya commited on
Commit
f40d803
1 Parent(s): 8097eeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ if audio:
25
  audio_data = np.frombuffer(audio['bytes'], dtype=np.int16)
26
 
27
  # Convert audio to text
28
- transcription = audio_to_text(audio_data)
29
 
30
  # Display the transcription
31
  st.write("Transcription:", transcription)
 
25
  audio_data = np.frombuffer(audio['bytes'], dtype=np.int16)
26
 
27
  # Convert audio to text
28
+ transcription = audio_to_text(audio_data,audio['sample_rate'])
29
 
30
  # Display the transcription
31
  st.write("Transcription:", transcription)