Update my_model/state_manager.py
Browse files
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'] =
|
23 |
-
if '
|
24 |
-
st.session_state['confidence_level'] =
|
25 |
-
if '
|
26 |
-
st.session_state['detection_model'] =
|
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:
|