TheKnight115 commited on
Commit
2c9be27
·
verified ·
1 Parent(s): 6e47efd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def process_video(uploaded_file):
102
  def main():
103
  model_file = hf_hub_download(repo_id="TheKnight115/Yolov8m", filename="yolov8_Medium.pt")
104
 
105
- # Load the YOLO model
106
  model = YOLO(model_file)
107
 
108
  st.title("Motorbike Violation Detection")
 
102
  def main():
103
  model_file = hf_hub_download(repo_id="TheKnight115/Yolov8m", filename="yolov8_Medium.pt")
104
 
105
+ global model
106
  model = YOLO(model_file)
107
 
108
  st.title("Motorbike Violation Detection")