Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
from transformers import pipeline
|
3 |
import streamlit as st
|
4 |
from st_audiorec import st_audiorec
|
5 |
-
@st.
|
6 |
def make_text(audio):
|
7 |
pipe=pipeline("automatic-speech-recognition","distil-whisper/distil-large-v2")
|
8 |
text= pipe(audio)
|
|
|
2 |
from transformers import pipeline
|
3 |
import streamlit as st
|
4 |
from st_audiorec import st_audiorec
|
5 |
+
@st.cache_resource
|
6 |
def make_text(audio):
|
7 |
pipe=pipeline("automatic-speech-recognition","distil-whisper/distil-large-v2")
|
8 |
text= pipe(audio)
|