Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|