Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,7 @@ from transformers import pipeline
|
|
| 23 |
|
| 24 |
@st.cache_resource
|
| 25 |
def load_voice_model():
|
| 26 |
-
|
| 27 |
-
st.session_state.whisper_model = pipeline("automatic-speech-recognition", model="openai/whisper-base")
|
| 28 |
|
| 29 |
def process_audio(audio_bytes):
|
| 30 |
waveform, sample_rate = torchaudio.load(BytesIO(audio_bytes))
|
|
|
|
| 23 |
|
| 24 |
@st.cache_resource
|
| 25 |
def load_voice_model():
|
| 26 |
+
return pipeline("automatic-speech-recognition", model="openai/whisper-tiny")
|
|
|
|
| 27 |
|
| 28 |
def process_audio(audio_bytes):
|
| 29 |
waveform, sample_rate = torchaudio.load(BytesIO(audio_bytes))
|