Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import numpy as np
|
|
4 |
from ultralytics import YOLO # Make sure this import works in your Hugging Face environment
|
5 |
|
6 |
# Load the model
|
7 |
-
@st.cache_resource
|
8 |
def load_model():
|
9 |
model = YOLO("weights.pt") # Adjust path if needed
|
10 |
return model
|
|
|
4 |
from ultralytics import YOLO # Make sure this import works in your Hugging Face environment
|
5 |
|
6 |
# Load the model
|
7 |
+
@st.cache_resource
|
8 |
def load_model():
|
9 |
model = YOLO("weights.pt") # Adjust path if needed
|
10 |
return model
|