hexular commited on
Commit
c1c5246
1 Parent(s): 787ad27
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -4,7 +4,10 @@ from transformers import pipeline
4
  pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
5
 
6
  def transcribe(audio):
7
- return pipe(audio)['text']
 
 
 
8
 
9
  app = gr.Interface(transcribe, gr.Audio(sources=["microphone"]), outputs="textbox")
10
 
 
4
  pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3")
5
 
6
  def transcribe(audio):
7
+ result = pipe(audio)
8
+ print(result)
9
+
10
+ return result
11
 
12
  app = gr.Interface(transcribe, gr.Audio(sources=["microphone"]), outputs="textbox")
13