Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
import logging
|
3 |
-
import
|
|
|
|
|
|
|
|
|
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):
|