filipzawadka commited on
Commit
cf7f5dc
1 Parent(s): c132e74
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -5,14 +5,13 @@ import numpy as np
5
  transcriber = pipeline("automatic-speech-recognition", model="filipzawadka/whisper-small-pl-2")
6
 
7
  def transcribe(audio):
8
- print(audio)
9
  return transcriber(audio)["text"]
10
 
11
 
12
  demo = gr.Interface(
13
- transcribe,
14
- gr.Audio(sources=["microphone"]),
15
- "text",
16
  )
17
 
18
  demo.launch()
 
5
  transcriber = pipeline("automatic-speech-recognition", model="filipzawadka/whisper-small-pl-2")
6
 
7
  def transcribe(audio):
 
8
  return transcriber(audio)["text"]
9
 
10
 
11
  demo = gr.Interface(
12
+ fn=transcribe,
13
+ inputs=gr.Audio(sources=["microphone"]),
14
+ outputs="text",
15
  )
16
 
17
  demo.launch()