JaredBailey commited on
Commit
84e74b4
·
verified ·
1 Parent(s): f550cc1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,7 +107,7 @@ with row3_col5:
107
 
108
  # load model
109
  if 'model' not in st.session_state:
110
- session_state.model = YOLO("/home/user/app/models/head_model/best.pt") # load
111
 
112
  #####
113
  ###
@@ -139,7 +139,7 @@ if st.session_state.image is not None:
139
  components.html("""<hr style="height:2px;border:none;color:#333;background-color:#333;" /> """)
140
 
141
  # predictions
142
- results = session_state.model.predict(tiles) # predict
143
 
144
 
145
  _, row4_col2, row4_col3, _ = st.columns([1,4,4,1], gap="medium")
 
107
 
108
  # load model
109
  if 'model' not in st.session_state:
110
+ st.session_state.model = YOLO("/home/user/app/models/head_model/best.pt") # load
111
 
112
  #####
113
  ###
 
139
  components.html("""<hr style="height:2px;border:none;color:#333;background-color:#333;" /> """)
140
 
141
  # predictions
142
+ results = st.session_state.model.predict(tiles) # predict
143
 
144
 
145
  _, row4_col2, row4_col3, _ = st.columns([1,4,4,1], gap="medium")