diff --git a/app/src/components/detect-modal/detect-modal.tsx b/app/src/components/detect-modal/detect-modal.tsx index 16dc947..fcf909b 100644 --- a/app/src/components/detect-modal/detect-modal.tsx +++ b/app/src/components/detect-modal/detect-modal.tsx @@ -1,4 +1,8 @@ import { + Alert, + AlertIcon, + AlertTitle, + AlertDescription, Box, Button, Center, @@ -17,7 +21,7 @@ import { SliderTrack, Stack, Text, - useToast, + useToast } from "@chakra-ui/react"; import React, { FC, useRef, useState } from "react"; @@ -29,7 +33,7 @@ export interface DetectModalProps { export const DetectModal: FC = ({ isOpen, onClose }) => { const toast = useToast(); const [loading, setLoading] = useState(false); - const [canDetect, setCanDetect] = useState(true); + const [canDetect, setCanDetect] = useState(false); const [confidence, setConfidence] = useState(0.25); const [hideConfidence, setHideConfidence] = useState(false); const [hideLabels, setHideLabels] = useState(true); @@ -163,6 +167,10 @@ export const DetectModal: FC = ({ isOpen, onClose }) => { + + + This feature is currently disabled to minimise server load. + Try out the litter detection model by uploading your own image or using the sample below. @@ -224,7 +232,7 @@ export const DetectModal: FC = ({ isOpen, onClose }) => { > Detect -