Solved the issue for the uploading retrying section

This commit is contained in:
sumona-banerjeee
2026-02-25 11:51:55 +05:30
parent e461ee109f
commit 4a77bf09d3
3 changed files with 1 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
export default function UploadPage() {
const router = useRouter()
const [session, setSession] = useState<SessionContext | null>(null)

View File

@@ -14,7 +14,6 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL
const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "ws://")
type UploadSectionProps = {
onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void
onDetectionTypeChange: (type: DetectionType) => void

View File

@@ -16,7 +16,6 @@ import { DetectionData, DetectionType } from "@/lib/types"
const API_URL = process.env.NEXT_PUBLIC_API_URL
type VideoPlayerSectionProps = {
data: DetectionData
videoId: string