m7mdal7aj commited on
Commit
c537d6b
1 Parent(s): b599500

Update my_model/tabs/run_inference.py

Browse files
Files changed (1) hide show
  1. my_model/tabs/run_inference.py +1 -1
my_model/tabs/run_inference.py CHANGED
@@ -98,7 +98,7 @@ def run_inference():
98
 
99
  st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
100
  st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
101
- default_confidence = 0.2 if detection_model == "yolov5" else 0.4
102
  # confidence_level = st.slider("Select minimum detection confidence level", min_value=0.1, max_value=0.9, value=default_confidence, step=0.1)
103
  state_manager.set_slider_value(text="Select minimum detection confidence level",
104
  min_value=0.1,
 
98
 
99
  st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
100
  st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
101
+ default_confidence = 0.2 if st.session_state['detection_model'] == "yolov5" else 0.4
102
  # confidence_level = st.slider("Select minimum detection confidence level", min_value=0.1, max_value=0.9, value=default_confidence, step=0.1)
103
  state_manager.set_slider_value(text="Select minimum detection confidence level",
104
  min_value=0.1,