Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ initialize_session_state()
|
|
21 |
|
22 |
# Load models once
|
23 |
if 'classifier' not in st.session_state:
|
24 |
-
with st.spinner(Loading SpeechBrain model..."):
|
25 |
st.session_state.classifier = load_accent_model()
|
26 |
if 'whisper' not in st.session_state:
|
27 |
-
with st.spinner(Loading Whisper model..."):
|
28 |
st.session_state.whisper = load_whisper()
|
29 |
|
30 |
# Memory info
|
|
|
21 |
|
22 |
# Load models once
|
23 |
if 'classifier' not in st.session_state:
|
24 |
+
with st.spinner("Loading SpeechBrain model..."):
|
25 |
st.session_state.classifier = load_accent_model()
|
26 |
if 'whisper' not in st.session_state:
|
27 |
+
with st.spinner("Loading Whisper model..."):
|
28 |
st.session_state.whisper = load_whisper()
|
29 |
|
30 |
# Memory info
|