Spaces:
Runtime error
Runtime error
Remove sleep() from transcribe()
Browse files
app.py
CHANGED
|
@@ -11,7 +11,6 @@ p = pipeline("automatic-speech-recognition", chunk_length_s=5, model=model,
|
|
| 11 |
tokenizer=tokenizer, feature_extractor=feature_extractor)
|
| 12 |
|
| 13 |
def transcribe(audio, state=""):
|
| 14 |
-
time.sleep(2)
|
| 15 |
text = p(audio)["text"]
|
| 16 |
state += text + " "
|
| 17 |
return state
|
|
|
|
| 11 |
tokenizer=tokenizer, feature_extractor=feature_extractor)
|
| 12 |
|
| 13 |
def transcribe(audio, state=""):
|
|
|
|
| 14 |
text = p(audio)["text"]
|
| 15 |
state += text + " "
|
| 16 |
return state
|