Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ def process_clip_from_file(prompt, frames, chatbot, fps, video_path, id):
|
|
170 |
result = None
|
171 |
if api_response and api_response.get("condition_met", False):
|
172 |
# video_clip_path = encode_to_video_fast(frames, fps)
|
173 |
-
video_clip_path = clip_video_segment(video_path, id*LENGTH,
|
174 |
chatbot.append(((video_clip_path,), None))
|
175 |
chatbot.append((f"Time: {start_time}\nDetails: {api_response.get('details', '')}", None))
|
176 |
|
|
|
170 |
result = None
|
171 |
if api_response and api_response.get("condition_met", False):
|
172 |
# video_clip_path = encode_to_video_fast(frames, fps)
|
173 |
+
video_clip_path = clip_video_segment(video_path, id*LENGTH, LENGTH)
|
174 |
chatbot.append(((video_clip_path,), None))
|
175 |
chatbot.append((f"Time: {start_time}\nDetails: {api_response.get('details', '')}", None))
|
176 |
|