Sa-m commited on
Commit
01b0791
·
1 Parent(s): cf4e63f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def predict():
22
 
23
  #model = torch.hub.load('ultralytics/yolov5', 'custom', path='best2.pt', force_reload=True) # force_reload to recache
24
 
25
- '''if not request.method == "POST":
26
- return'''
27
 
28
  if request.files.get("image"):
29
  image_file = request.files["image"]
 
22
 
23
  #model = torch.hub.load('ultralytics/yolov5', 'custom', path='best2.pt', force_reload=True) # force_reload to recache
24
 
25
+ if not request.method == "POST":
26
+ return
27
 
28
  if request.files.get("image"):
29
  image_file = request.files["image"]