You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0c2add5
Browse filesBrowse the repository at this point in the historyBrowse files
# # prompt="Generate chapters for every single scene change. Describe people, objects, and actions in detail. Granularity should be at the level of a single shot. No Chapter should be longer than 10 seconds.",
159
-
# # temperature=0.
160
-
# # )
161
-
# lambda: twelve_labs_client.generate.text(
162
-
# video["twelve_labs_video_id"],
163
-
# # For regex patterns, use raw strings to avoid Python interpreting the backslashes
164
-
# prompt = 'Generate chapters for every single scene change. Describe people, objects, and actions in detail. Granularity should be at the level of a single shot. Output should be in non-markdown JSON format with the following fields: start, end, summary. Example Output:' + structured_output,
165
-
# temperature=0.1,
166
-
# )
167
-
# )
168
-
169
-
# print(f"Summary response: {response}")
170
-
171
-
# # Check if response contains markdown JSON format
172
-
# if response.data:
173
-
# if isinstance(response.data, str) and "```json" in response.data:
# prompt="Generate chapters for every single scene change. Describe people, objects, and actions in detail. Granularity should be at the level of a single shot. No Chapter should be longer than 10 seconds.",
158
+
# temperature=0.
159
+
# )
160
+
lambda: twelve_labs_client.generate.text(
161
+
video["twelve_labs_video_id"],
162
+
# For regex patterns, use raw strings to avoid Python interpreting the backslashes
163
+
prompt='Generate chapters for every single scene change. Describe people, objects, and actions in detail. Granularity should be at the level of a single shot. The longest a single chapter should be 10 seconds. Output should be in non-markdown JSON format with the following fields: start, end, summary. Example Output:'+structured_output,
0 commit comments