edesaras commited on
Commit
39012a1
1 Parent(s): c120c7a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(allow_output_mutation=True)
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