JaredBailey commited on
Commit
5fcad60
·
verified ·
1 Parent(s): c9e981d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- st.session_state.model = YOLO("/home/user/app/models/head_model/best.pt", device='gpu') # load
 
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])