Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,8 @@ if 'confidence' not in st.session_state:
|
|
| 47 |
st.session_state.confidence = 0.50
|
| 48 |
|
| 49 |
if 'model' not in st.session_state:
|
| 50 |
-
|
|
|
|
| 51 |
|
| 52 |
_, row0_col1, _ = st.columns([2,3,2])
|
| 53 |
_, row1_col1, _ = st.columns([2,3,2])
|
|
|
|
| 47 |
st.session_state.confidence = 0.50
|
| 48 |
|
| 49 |
if 'model' not in st.session_state:
|
| 50 |
+
torch.cuda.set_device(0)
|
| 51 |
+
st.session_state.model = YOLO("/home/user/app/models/head_model/best.pt") # load
|
| 52 |
|
| 53 |
_, row0_col1, _ = st.columns([2,3,2])
|
| 54 |
_, row1_col1, _ = st.columns([2,3,2])
|