Skip to content

Commit a14d5c7

Browse files
committed
update classname
1 parent 0ed5c3d commit a14d5c7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/detectobj/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
urlpatterns = [
77
path("<int:pk>/selected_image/",
8-
views.InferencedImageDetectionView.as_view(),
8+
views.InferenceImageDetectionView.as_view(),
99
name="detection_image_detail_url"
1010
),
1111
]

apps/detectobj/views.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from modelmanager.models import MLModel
2020

2121

22-
class InferencedImageDetectionView(LoginRequiredMixin, DetailView):
22+
class InferenceImageDetectionView(LoginRequiredMixin, DetailView):
2323
model = ImageFile
2424
template_name = "detectobj/select_inference_image.html"
2525

@@ -60,7 +60,8 @@ def post(self, request, *args, **kwargs):
6060

6161
# Get form data
6262
modelconf = self.request.POST.get("confidence")
63-
modelconf = float(modelconf) if modelconf else settings.MODEL_CONFIDENCE
63+
modelconf = float(
64+
modelconf) if modelconf else settings.MODEL_CONFIDENCE
6465
custom_model_id = self.request.POST.get("custom_model")
6566
yolo_model_name = self.request.POST.get("yolo_model")
6667

0 commit comments

Comments
 (0)