divakaivan commited on
Commit
76fd095
1 Parent(s): b904ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -4,12 +4,11 @@ import gradio as gr
4
  pipe = pipeline(model="divakaivan/whisper-small-hi_test")
5
 
6
  def transcribe(audio):
7
- print(audio)
8
- print(type(audio))
9
  text = pipe(audio)["text"]
10
  return text
11
 
12
- iface = gr.Interface(
13
  fn=transcribe,
14
  inputs=gr.Audio(type="filepath"),
15
  outputs="text",
@@ -17,4 +16,4 @@ iface = gr.Interface(
17
  description="Realtime demo for Glaswegian speech recognition using a fine-tuned Whisper small model.",
18
  )
19
 
20
- iface.launch(share=True)
 
4
  pipe = pipeline(model="divakaivan/whisper-small-hi_test")
5
 
6
  def transcribe(audio):
7
+
 
8
  text = pipe(audio)["text"]
9
  return text
10
 
11
+ demo = gr.Interface(
12
  fn=transcribe,
13
  inputs=gr.Audio(type="filepath"),
14
  outputs="text",
 
16
  description="Realtime demo for Glaswegian speech recognition using a fine-tuned Whisper small model.",
17
  )
18
 
19
+ demo.launch(share=True)