Spaces:
Running
Running
vishalkatheriya18
commited on
Commit
•
199e804
1
Parent(s):
fae5ae3
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import time
|
|
7 |
|
8 |
# Load the YOLO model only once using Streamlit session state
|
9 |
if 'models_loaded' not in st.session_state:
|
10 |
-
st.session_state.yolo_model = YOLO('
|
11 |
st.session_state.models_loaded = True
|
12 |
|
13 |
# Define function for inference using YOLO
|
|
|
7 |
|
8 |
# Load the YOLO model only once using Streamlit session state
|
9 |
if 'models_loaded' not in st.session_state:
|
10 |
+
st.session_state.yolo_model = YOLO('best.pt') # Update with your model path
|
11 |
st.session_state.models_loaded = True
|
12 |
|
13 |
# Define function for inference using YOLO
|