Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
| 89 |
if indoors_outdoors:
|
| 90 |
-
|
| 91 |
if standing_sitting:
|
| 92 |
-
|
| 93 |
if hands_free:
|
| 94 |
-
|
| 95 |
if interacting_screen:
|
| 96 |
-
|
| 97 |
|
| 98 |
-
answers = process_videos(videos,
|
| 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(
|