m7mdal7aj commited on
Commit
b0349d7
1 Parent(s): 3c11450

Update my_model/state_manager.py

Browse files
Files changed (1) hide show
  1. my_model/state_manager.py +5 -5
my_model/state_manager.py CHANGED
@@ -19,11 +19,11 @@ class StateManager:
19
  if "previous_state" not in st.session_state:
20
  st.session_state['previous_state'] = {'method': None, 'detection_model': None, 'confidence_level': None}
21
  if 'method' not in st.session_state:
22
- st.session_state['method'] = None
23
- if 'method' not in st.session_state:
24
- st.session_state['confidence_level'] = None
25
- if 'method' not in st.session_state:
26
- st.session_state['detection_model'] = None
27
  if 'images_data' not in st.session_state:
28
  st.session_state['images_data'] = {}
29
  if 'kbvqa' not in st.session_state:
 
19
  if "previous_state" not in st.session_state:
20
  st.session_state['previous_state'] = {'method': None, 'detection_model': None, 'confidence_level': None}
21
  if 'method' not in st.session_state:
22
+ st.session_state['method'] = "Fine-Tuned Model"
23
+ if 'confidence_level' not in st.session_state:
24
+ st.session_state['confidence_level'] = 0.35
25
+ if 'detection_model' not in st.session_state:
26
+ st.session_state['detection_model'] = 'detic'
27
  if 'images_data' not in st.session_state:
28
  st.session_state['images_data'] = {}
29
  if 'kbvqa' not in st.session_state: