Spaces:
Runtime error
Runtime error
ManishThota
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,14 @@ def process_video_and_get_json(video, sitting, hands, location, screen):
|
|
21 |
final_query = query + " " + " ".join(additional_info)
|
22 |
|
23 |
video_description = describe_video(video, final_query)
|
24 |
-
if video_description:
|
25 |
-
json_response = process_description(video_description)
|
26 |
|
27 |
-
return video_description
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
video = gr.Video(label="Video")
|
31 |
sitting = gr.Checkbox(label="Sitting/Standing")
|
32 |
hands = gr.Checkbox(label="Hands Free/Not Free")
|
|
|
21 |
final_query = query + " " + " ".join(additional_info)
|
22 |
|
23 |
video_description = describe_video(video, final_query)
|
|
|
|
|
24 |
|
25 |
+
return video_description
|
26 |
|
27 |
+
def process_and_display_json(video_description):
|
28 |
+
json_response = process_description(video_description)
|
29 |
+
return json_response
|
30 |
+
|
31 |
+
# --- Gradio Interface ---
|
32 |
video = gr.Video(label="Video")
|
33 |
sitting = gr.Checkbox(label="Sitting/Standing")
|
34 |
hands = gr.Checkbox(label="Hands Free/Not Free")
|