TaahKay commited on
Commit
6b9c0d7
·
verified ·
1 Parent(s): 0a593cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.trascription:
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