TaahKay commited on
Commit
0667951
·
verified ·
1 Parent(s): f7737f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -25,9 +25,8 @@ st.title("English Accent Audio Detector")
25
  initialize_session_state()
26
 
27
  # Load models once when there is no transcription
28
- if 'whisper' not in st.session_state and not session_state.trascription:
29
- with st.spinner("Loading Whisper model..."):
30
- st.session_state.whisper = load_whisper()
31
 
32
  # Memory info
33
  display_memory_once()
 
25
  initialize_session_state()
26
 
27
  # Load models once when there is no transcription
28
+ if session_state.trascription:
29
+ st.session_state.whisper = load_whisper()
 
30
 
31
  # Memory info
32
  display_memory_once()