eolang commited on
Commit
5c34f50
·
verified ·
1 Parent(s): 5b558af

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ whisper = gr.load("eolang/whisper-small-sw")
4
+
5
+ def transcribe(audio):
6
+ return whisper(audio)
7
+
8
+ gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()