Spaces:
Sleeping
Sleeping
Update my_model/utilities/state_manager.py
Browse files
my_model/utilities/state_manager.py
CHANGED
|
@@ -28,7 +28,7 @@ class StateManager:
|
|
| 28 |
# Use the second column (col2) for the checkbox
|
| 29 |
|
| 30 |
|
| 31 |
-
|
| 32 |
st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
|
| 33 |
detection_model = st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
|
| 34 |
default_confidence = 0.2 if st.session_state.detection_model == "yolov5" else 0.4
|
|
@@ -36,7 +36,7 @@ class StateManager:
|
|
| 36 |
|
| 37 |
# Conditional display of model settings
|
| 38 |
with col2:
|
| 39 |
-
show_model_settings = st.
|
| 40 |
if show_model_settings:
|
| 41 |
self.display_model_settings()
|
| 42 |
|
|
|
|
| 28 |
# Use the second column (col2) for the checkbox
|
| 29 |
|
| 30 |
|
| 31 |
+
with col1:
|
| 32 |
st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
|
| 33 |
detection_model = st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
|
| 34 |
default_confidence = 0.2 if st.session_state.detection_model == "yolov5" else 0.4
|
|
|
|
| 36 |
|
| 37 |
# Conditional display of model settings
|
| 38 |
with col2:
|
| 39 |
+
show_model_settings = st.checkbox("Show Model Settings", False)
|
| 40 |
if show_model_settings:
|
| 41 |
self.display_model_settings()
|
| 42 |
|