linhcuem commited on
Commit
78ffc33
1 Parent(s): e141787

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ def yolov8_img_inference(
73
  present_objects.pop(i)
74
 
75
 
76
- return render, {names[k]: v for k, v in present_objects}
77
  # results = model.predict(image, imgsz=image_size, return_outputs=True)
78
  # results = model.predict(image)
79
  # object_prediction_list = []
 
73
  present_objects.pop(i)
74
 
75
 
76
+ return render, {names[k]: v for k, v in present_objects.item()}
77
  # results = model.predict(image, imgsz=image_size, return_outputs=True)
78
  # results = model.predict(image)
79
  # object_prediction_list = []