Gbssreejith commited on
Commit
9fc4781
1 Parent(s): 11b39ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ pipe = pipeline(model="Gbssreejith/whisper-small-ml") # change to "your-usernam
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
- return text, audio
9
 
10
  iface = gr.Interface(
11
  fn=transcribe,
@@ -13,7 +13,7 @@ iface = gr.Interface(
13
  outputs="text",
14
  title="Whisper Small ml",
15
  description="Realtime demo for malayalam speech recognition using a fine-tuned Whisper small model.",
16
- live=True # Ensure live transcription for better UX
17
 
18
  )
19
 
 
5
 
6
  def transcribe(audio):
7
  text = pipe(audio)["text"]
8
+ return text
9
 
10
  iface = gr.Interface(
11
  fn=transcribe,
 
13
  outputs="text",
14
  title="Whisper Small ml",
15
  description="Realtime demo for malayalam speech recognition using a fine-tuned Whisper small model.",
16
+
17
 
18
  )
19