Update app.py
Browse files
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 |
-
|
16 |
-
|
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,
|