Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|