abidlabs HF staff commited on
Commit
a3bbd7b
1 Parent(s): be3f875

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,9 +1,11 @@
1
  from transformers import pipeline
2
  import gradio as gr
 
3
 
4
  p = pipeline("automatic-speech-recognition")
5
 
6
  def transcribe(audio, state=""):
 
7
  text = p(audio)["text"]
8
  state += text + " "
9
  return state, state
1
  from transformers import pipeline
2
  import gradio as gr
3
+ import time
4
 
5
  p = pipeline("automatic-speech-recognition")
6
 
7
  def transcribe(audio, state=""):
8
+ time.sleep(2)
9
  text = p(audio)["text"]
10
  state += text + " "
11
  return state, state