Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -169,7 +169,7 @@ elif page == "PS3":
|
|
169 |
model2 = YOLO("best.pt")
|
170 |
if uploaded_file1 is not None:
|
171 |
with tempfile.NamedTemporaryFile(delete=False) as temp:
|
172 |
-
temp.write(
|
173 |
if 'roi_list2' not in st.session_state:
|
174 |
st.session_state['roi_list2'] = []
|
175 |
if "all_rois2" not in st.session_state:
|
|
|
169 |
model2 = YOLO("best.pt")
|
170 |
if uploaded_file1 is not None:
|
171 |
with tempfile.NamedTemporaryFile(delete=False) as temp:
|
172 |
+
temp.write(uploaded_file1.read())
|
173 |
if 'roi_list2' not in st.session_state:
|
174 |
st.session_state['roi_list2'] = []
|
175 |
if "all_rois2" not in st.session_state:
|