Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
def transcribe(audio):
|
6 |
return whisper(audio)
|
|
|
1 |
import gradio as gr
|
2 |
+
#from transformers import pipeline
|
3 |
|
4 |
+
#pipe = pipeline("automatic-speech-recognition", model="openai/whisper-small")
|
5 |
+
whisper = gr.load("openai/whisper-small")
|
6 |
|
7 |
def transcribe(audio):
|
8 |
return whisper(audio)
|