Spaces:
Build error
Build error
Commit
·
a489845
1
Parent(s):
31ef180
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import whisper
|
3 |
+
audio = "bsp.mp3"
|
4 |
+
model = whisper.load_model("base")
|
5 |
|
|
|
|
|
6 |
|
7 |
+
|
8 |
+
def transcribing(file):
|
9 |
+
|
10 |
+
transcribe = model.transcribe(audio)
|
11 |
+
return transcribe["text"]
|
12 |
+
|
13 |
+
iface = gr.Interface(fn=greet, gr.inputs.File(file_count="multiple",label="Input Files"), outputs="text")
|
14 |
iface.launch()
|