Testimony Adekoya commited on
Commit
56a3a4f
Β·
1 Parent(s): f4fd68f

Pushing status queue on main too

Browse files
Files changed (1) hide show
  1. main.py +8 -0
main.py CHANGED
@@ -3,6 +3,7 @@ import streamlit as st
3
  import yaml
4
  import os
5
  from dotenv import load_dotenv
 
6
 
7
  # --- Main Application UI ---
8
  st.set_page_config(
@@ -28,6 +29,13 @@ if "play_audio" not in st.session_state:
28
  st.session_state.play_audio = None
29
  if "active_alerts" not in st.session_state:
30
  st.session_state.active_alerts = {"status": "Awake"}
 
 
 
 
 
 
 
31
 
32
 
33
  # --- Page Content ---
 
3
  import yaml
4
  import os
5
  from dotenv import load_dotenv
6
+ import queue
7
 
8
  # --- Main Application UI ---
9
  st.set_page_config(
 
29
  st.session_state.play_audio = None
30
  if "active_alerts" not in st.session_state:
31
  st.session_state.active_alerts = {"status": "Awake"}
32
+ if "status_queue" not in st.session_state:
33
+ st.session_state.status_queue = queue.Queue()
34
+ if "audio_queue" not in st.session_state:
35
+ st.session_state.audio_queue = queue.Queue()
36
+ if "last_status" not in st.session_state:
37
+ st.session_state.last_status = {"status": "Awake"}
38
+
39
 
40
 
41
  # --- Page Content ---