Spaces:
Runtime error
Runtime error
Commit
·
146c764
1
Parent(s):
40b6439
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import whisper
|
3 |
-
def
|
4 |
model = whisper.load_model("base")
|
5 |
|
6 |
audio = whisper.load_audio(audio)
|
@@ -9,7 +9,7 @@ def greet(audio):
|
|
9 |
return result1["text"]
|
10 |
|
11 |
demo = gr.Interface(
|
12 |
-
fn=
|
13 |
inputs=gr.Audio(source="upload",type="filepath"),
|
14 |
examples=[["Example.mp3"]],
|
15 |
outputs="text"
|
|
|
1 |
import gradio as gr
|
2 |
import whisper
|
3 |
+
def translatetotext(audio):
|
4 |
model = whisper.load_model("base")
|
5 |
|
6 |
audio = whisper.load_audio(audio)
|
|
|
9 |
return result1["text"]
|
10 |
|
11 |
demo = gr.Interface(
|
12 |
+
fn=translatetotext,
|
13 |
inputs=gr.Audio(source="upload",type="filepath"),
|
14 |
examples=[["Example.mp3"]],
|
15 |
outputs="text"
|