Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,12 +22,15 @@ def process_video_and_questions(video, sitting, hands, location, screen):
|
|
22 |
additional_info.append("Is the subject present indoors or outdoors?")
|
23 |
if screen:
|
24 |
additional_info.append("Is the subject interacting with a screen in the background by facing the screen?")
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
31 |
final_query = query + " " + " ".join(additional_info)
|
32 |
final_prompt = final_query + " " + end_query
|
33 |
|
|
|
22 |
additional_info.append("Is the subject present indoors or outdoors?")
|
23 |
if screen:
|
24 |
additional_info.append("Is the subject interacting with a screen in the background by facing the screen?")
|
25 |
+
end_query = """Provide the results in <annotation> tags, where 0 indicates False, 1 indicates True, and None indicates that no information is present. Below is an example:
|
26 |
+
<instructions>
|
27 |
+
<annotation>indoors: 0</annotation>
|
28 |
+
<annotation>standing: 1</annotation>
|
29 |
+
<annotation>hands.free: None</annotation>
|
30 |
+
<annotation>screen.interaction_yes: None</annotation>
|
31 |
+
</instructions>
|
32 |
+
"""
|
33 |
+
|
34 |
final_query = query + " " + " ".join(additional_info)
|
35 |
final_prompt = final_query + " " + end_query
|
36 |
|