nagasurendra commited on
Commit
1b65107
·
verified ·
1 Parent(s): c5cff55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,9 +1,8 @@
1
  from ultralytics import YOLO
2
  import os
3
 
4
- # Define path to the config.yaml in your Hugging Face Space
5
- ROOT_DIR = '/app/data' # Since data is uploaded under /app/data in Hugging Face Space
6
- config_path = os.path.join(ROOT_DIR, 'config.yaml')
7
 
8
  # Load YOLO model
9
  model = YOLO("yolo11n.yaml") # You can choose a different model type like yolo5n, yolo6n, etc.
 
1
  from ultralytics import YOLO
2
  import os
3
 
4
+ # Define the correct path to config.yaml (in the root directory)
5
+ config_path = '/app/config.yaml'
 
6
 
7
  # Load YOLO model
8
  model = YOLO("yolo11n.yaml") # You can choose a different model type like yolo5n, yolo6n, etc.