m7mdal7aj commited on
Commit
22d0357
1 Parent(s): 923d790

Update my_model/utilities/state_manager.py

Browse files
my_model/utilities/state_manager.py CHANGED
@@ -25,8 +25,10 @@ class StateManager:
25
 
26
  def set_up_widgets(self):
27
  st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
28
- self.detection_model = st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
29
- default_confidence = 0.2 if self.detection_model == "yolov5" else 0.4
 
 
30
  self.set_slider_value(text="Select minimum detection confidence level",
31
  min_value=0.1,
32
  max_value=0.9,
 
25
 
26
  def set_up_widgets(self):
27
  st.selectbox("Choose a method:", ["Fine-Tuned Model", "In-Context Learning (n-shots)"], index=0, key='method')
28
+ detection_model = st.selectbox("Choose a model for objects detection:", ["yolov5", "detic"], index=1, key='detection_model')
29
+ st.write("Detection Model")
30
+ st.write(detection_model)
31
+ default_confidence = 0.2 if detection_model == "yolov5" else 0.4
32
  self.set_slider_value(text="Select minimum detection confidence level",
33
  min_value=0.1,
34
  max_value=0.9,