dvislobokov commited on
Commit
f34dac7
·
verified ·
1 Parent(s): 487ac4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -12,9 +12,8 @@ pipe = pipeline(
12
  def transcribe(audio):
13
  start = time.time()
14
  text = pipe(audio, return_timestamps=True)['text']
15
- print(time.time() - start)
16
- print(text)
17
- return text
18
 
19
  iface = gr.Interface(
20
  fn=transcribe,
 
12
  def transcribe(audio):
13
  start = time.time()
14
  text = pipe(audio, return_timestamps=True)['text']
15
+ spent_time = (time.time() - start)
16
+ return f'Spent time: {spent_time}\nText: {text}'
 
17
 
18
  iface = gr.Interface(
19
  fn=transcribe,