Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -163,10 +163,9 @@ def process_clip(prompt, frames, chatbot):
|
|
163 |
|
164 |
if api_response["condition_met"] == True:
|
165 |
finish_time = datetime.now(israel_tz).strftime('%H:%M:%S')
|
166 |
-
video_clip_path =
|
167 |
chatbot.append(((video_clip_path,), None))
|
168 |
-
|
169 |
-
chatbot.append((result, None))
|
170 |
|
171 |
frame_paths = []
|
172 |
for i, base64_frame in enumerate(base64Frames):
|
|
|
163 |
|
164 |
if api_response["condition_met"] == True:
|
165 |
finish_time = datetime.now(israel_tz).strftime('%H:%M:%S')
|
166 |
+
video_clip_path = encode_to_video(frames, fps)
|
167 |
chatbot.append(((video_clip_path,), None))
|
168 |
+
chatbot.append((f"Time: {start_time}\nDetails: {api_response.get('details', '')}", None))
|
|
|
169 |
|
170 |
frame_paths = []
|
171 |
for i, base64_frame in enumerate(base64Frames):
|