Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
eolang
/
WhisperSW
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
eolang
commited on
Sep 10, 2024
Commit
5c34f50
·
verified
·
1 Parent(s):
5b558af
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -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()