kabita-choudhary commited on
Commit
146c764
·
1 Parent(s): 40b6439

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  import whisper
3
- def greet(audio):
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=greet,
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"