Skip to content

Commit bb5ad25

Browse files
committed
feat: async index
1 parent 753d272 commit bb5ad25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

videodb/video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def get_transcript_text(self, force: bool = False) -> str:
116116
self._fetch_transcript(force)
117117
return self.transcript_text
118118

119-
def index_spoken_words(self, force: bool = False) -> None:
119+
def index_spoken_words(self, force: bool = False, callback_url: str = None) -> None:
120120
"""Semantic indexing of spoken words in the video
121121
122122
:raises InvalidRequestError: If the video is already indexed
@@ -128,6 +128,7 @@ def index_spoken_words(self, force: bool = False) -> None:
128128
data={
129129
"index_type": IndexType.semantic,
130130
"force": force,
131+
"callback_url": callback_url,
131132
},
132133
show_progress=True,
133134
)

0 commit comments

Comments
 (0)