Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
demo = gr.Blocks()
|
| 3 |
|
| 4 |
def transcribe_long_form(filepath):
|
|
|
|
| 1 |
+
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
+
|
| 4 |
+
asr = pipeline(task="automatic-speech-recognition",
|
| 5 |
+
model="./models/distil-whisper/distil-small.en")
|
| 6 |
+
|
| 7 |
demo = gr.Blocks()
|
| 8 |
|
| 9 |
def transcribe_long_form(filepath):
|