Teapack1 commited on
Commit
a54b6d7
1 Parent(s): 6dc6ca0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,8 @@
1
  import gradio as gr
 
 
 
 
2
 
3
  def transcribe_speech(filepath):
4
  output = pipe(
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ model_id = "sanchit-gandhi/whisper-small-dv" # update with your model id
5
+ pipe = pipeline("automatic-speech-recognition", model=model_id)
6
 
7
  def transcribe_speech(filepath):
8
  output = pipe(