wesam0099 commited on
Commit
e054bda
·
verified ·
1 Parent(s): 63591ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -7,7 +7,10 @@ from ultralytics import YOLO
7
  import os
8
 
9
  app = Flask(__name__, static_folder='WEB/static', template_folder='WEB/templates')
10
- CORS(app)
 
 
 
11
 
12
  # Load YOLO model
13
  model = YOLO('yolov8s.pt')
 
7
  import os
8
 
9
  app = Flask(__name__, static_folder='WEB/static', template_folder='WEB/templates')
10
+
11
+ @app.route('/')
12
+ def home():
13
+ return render_template('index.html')
14
 
15
  # Load YOLO model
16
  model = YOLO('yolov8s.pt')