Solved the issue for the uploading retrying section
This commit is contained in:
@@ -24,6 +24,7 @@ const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "
|
|||||||
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
|
type DetectionType = "pothole-detection" | "sign-board-detection" | "pot-sign-detection"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function UploadPage() {
|
export default function UploadPage() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const [session, setSession] = useState<SessionContext | null>(null)
|
const [session, setSession] = useState<SessionContext | null>(null)
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ const API_URL = process.env.NEXT_PUBLIC_API_URL
|
|||||||
const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "ws://")
|
const WS_URL = API_URL?.replace(/^https:\/\//, "wss://").replace(/^http:\/\//, "ws://")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type UploadSectionProps = {
|
type UploadSectionProps = {
|
||||||
onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void
|
onDetectionComplete: (data: DetectionData, videoId: string, file: File) => void
|
||||||
onDetectionTypeChange: (type: DetectionType) => void
|
onDetectionTypeChange: (type: DetectionType) => void
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import { DetectionData, DetectionType } from "@/lib/types"
|
|||||||
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
const API_URL = process.env.NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
type VideoPlayerSectionProps = {
|
type VideoPlayerSectionProps = {
|
||||||
data: DetectionData
|
data: DetectionData
|
||||||
videoId: string
|
videoId: string
|
||||||
|
|||||||
Reference in New Issue
Block a user