Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions videodb/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ class Status:
in_progress = "in progress"


INDEX_TERMINAL_STATUSES = {"ready", "failed"}
UNDERSTANDING_TERMINAL_STATUSES = {"done", "failed"}
ANALYZER_TERMINAL_STATUSES = {"done", "failed", "skipped", "cancelled"}


class MeetingStatus:
initializing = "initializing"
processing = "processing"
Expand Down
5 changes: 1 addition & 4 deletions videodb/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

from typing import List, Optional

from videodb._constants import ApiPath


INDEX_TERMINAL_STATUSES = {"ready", "failed"}
from videodb._constants import ApiPath, INDEX_TERMINAL_STATUSES


class FieldSchema:
Expand Down
9 changes: 5 additions & 4 deletions videodb/understanding.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import time
from typing import Any, Dict, List, Optional

from videodb._constants import ApiPath
from videodb._constants import (
ApiPath,
ANALYZER_TERMINAL_STATUSES,
UNDERSTANDING_TERMINAL_STATUSES,
)


UNDERSTANDING_TERMINAL_STATUSES = {"done", "failed"}
ANALYZER_TERMINAL_STATUSES = {"done", "failed", "skipped", "cancelled"}

ANALYZER_TYPE_ALIASES = {
"spoken_words": "speech_transcription",
}
Expand Down
Loading