ManishThota commited on
Commit
47fde9b
·
verified ·
1 Parent(s): 9f373ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -85,17 +85,18 @@ def process_videos(video_files, question_parts):
85
 
86
  # Define Gradio interface for multiple videos
87
  def gradio_interface(videos, indoors_outdoors, standing_sitting, hands_free, interacting_screen):
88
- question_parts = []
 
89
  if indoors_outdoors:
90
- question_parts.append("Is the subject in the video present indoors or outdoors?")
91
  if standing_sitting:
92
- question_parts.append("Is the subject standing or sitting?")
93
  if hands_free:
94
- question_parts.append("Is the subject's hands free or not?")
95
  if interacting_screen:
96
- question_parts.append("Is the subject interacting with any screen in the background?")
97
 
98
- answers = process_videos(videos, question_parts)
99
  return answers
100
 
101
  iface = gr.Interface(
 
85
 
86
  # Define Gradio interface for multiple videos
87
  def gradio_interface(videos, indoors_outdoors, standing_sitting, hands_free, interacting_screen):
88
+
89
+ question = "Is the subject in the video "
90
  if indoors_outdoors:
91
+ question += "present indoors or outdoors? "
92
  if standing_sitting:
93
+ question += "standing or sitting? "
94
  if hands_free:
95
+ question += "hands free or not? "
96
  if interacting_screen:
97
+ question += "interacting with any screen in the background?"
98
 
99
+ answers = process_videos(videos, question)
100
  return answers
101
 
102
  iface = gr.Interface(