zanemotiwala commited on
Commit
a4e347a
·
verified ·
1 Parent(s): bff0da8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
2
  import logging
3
- import asr
 
 
 
 
4
 
5
  # Adjusted function assuming 'asr' expects a file path as input
6
  def transcribe_speech(audio_file_path):
 
1
  import gradio as gr
2
  import logging
3
+ from transformers import pipeline
4
+
5
+ asr = pipeline(task="automatic-speech-recognition",
6
+ model="distil-whisper/distil-small.en")
7
+
8
 
9
  # Adjusted function assuming 'asr' expects a file path as input
10
  def transcribe_speech(audio_file_path):