Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|