ariankhalfani commited on
Commit
34de998
1 Parent(s): 5550d19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ def auto_train():
63
 
64
  # Determine the model name based on the selected size and task
65
  model_type = "seg" if task == "Segmentation" else "cls"
66
- model_name = f"yolov8{model_size[0]}-{model_type}.pt"
67
 
68
  # Load and train the model
69
  model = YOLO(model_name)
 
63
 
64
  # Determine the model name based on the selected size and task
65
  model_type = "seg" if task == "Segmentation" else "cls"
66
+ model_name = f"yolov8{model_size}-{model_type}.pt"
67
 
68
  # Load and train the model
69
  model = YOLO(model_name)