Spaces:
Runtime error
Runtime error
jiaofengxu
commited on
Commit
Β·
2c67b9f
1
Parent(s):
739730f
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
-
model = pipeline("automatic-speech-recognition")
|
| 5 |
-
|
| 6 |
|
| 7 |
def transcribe_audio(mic=None, file=None):
|
| 8 |
if mic is not None:
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
#model = pipeline("automatic-speech-recognition")
|
| 5 |
+
model = pipeline("automatic-speech-recognition", model="openai/whisper-base.en")
|
| 6 |
|
| 7 |
def transcribe_audio(mic=None, file=None):
|
| 8 |
if mic is not None:
|