Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
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")
|