jskinner215 commited on
Commit
33d813d
·
1 Parent(s): f1ea802

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -11,7 +11,12 @@ from weaviate import Client
11
  from weaviate.util import generate_uuid5
12
  import logging
13
 
 
 
 
 
14
  st_callback = StreamlitCallbackHandler(st.container())
 
15
  class StreamlitCallbackHandler(logging.Handler):
16
  def emit(self, record):
17
  log_entry = self.format(record)
 
11
  from weaviate.util import generate_uuid5
12
  import logging
13
 
14
+ # Initialize session state attributes
15
+ if "debug" not in st.session_state:
16
+ st.session_state.debug = False
17
+
18
  st_callback = StreamlitCallbackHandler(st.container())
19
+
20
  class StreamlitCallbackHandler(logging.Handler):
21
  def emit(self, record):
22
  log_entry = self.format(record)