Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
gr.load("models/openai/whisper-small")
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
whisper = gr.load("models/openai/whisper-small")
|
4 |
+
|
5 |
+
def transcribe(audio):
|
6 |
+
return whisper(audio)
|
7 |
+
|
8 |
+
gr.Interface(transcribe, gr.Audio(), gr.Textbox()).launch()
|