zanemotiwala commited on
Commit
f28b22a
1 Parent(s): cea3a6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -6,11 +6,9 @@ import torch
6
  description = "Simple Speech Recognition App"
7
  title = "This app allows users to record audio through the microphone or upload audio files to be transcribed into text. It uses the speech_recognition library to process audio and extract spoken words. Ideal for quick transcription of short speeches and audio notes."
8
 
9
-
10
  asr = pipeline(task="automatic-speech-recognition",
11
  model="distil-whisper/distil-small.en")
12
 
13
-
14
  # Adjusted function assuming 'asr' expects a file path as input
15
  def transcribe_speech(audio_file_path):
16
  if not audio_file_path:
 
6
  description = "Simple Speech Recognition App"
7
  title = "This app allows users to record audio through the microphone or upload audio files to be transcribed into text. It uses the speech_recognition library to process audio and extract spoken words. Ideal for quick transcription of short speeches and audio notes."
8
 
 
9
  asr = pipeline(task="automatic-speech-recognition",
10
  model="distil-whisper/distil-small.en")
11
 
 
12
  # Adjusted function assuming 'asr' expects a file path as input
13
  def transcribe_speech(audio_file_path):
14
  if not audio_file_path: