Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ st.title("English Accent Audio Detector")
|
|
25 |
initialize_session_state()
|
26 |
|
27 |
# Load models once when there is no transcription
|
28 |
-
if session_state.
|
29 |
st.session_state.whisper = load_whisper()
|
30 |
|
31 |
# Memory info
|
|
|
25 |
initialize_session_state()
|
26 |
|
27 |
# Load models once when there is no transcription
|
28 |
+
if "transcription" not in st.session_state or not st.session_state.transcription:
|
29 |
st.session_state.whisper = load_whisper()
|
30 |
|
31 |
# Memory info
|