ManishThota commited on
Commit
3fdad44
·
verified ·
1 Parent(s): 60a8041

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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, json_response
28
 
29
- # --- Gradio Interface ---
 
 
 
 
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")