Trupthi commited on
Commit
ff7eb65
·
verified ·
1 Parent(s): c04d2f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
  # Load Whisper pipeline
4
- pipe = pipeline(task="automatic-speech-recognition", model="openai/whisper-small")
5
  # Function to transcribe audio file
6
  def transcribe(audio_file):
7
  if audio_file is None:
 
1
  import gradio as gr
2
  from transformers import pipeline
3
  # Load Whisper pipeline
4
+ pipe = pipeline(task="automatic-speech-recognition", model="openai/whisper-small,return_timestamps=True")
5
  # Function to transcribe audio file
6
  def transcribe(audio_file):
7
  if audio_file is None: