ManishThota commited on
Commit
951fcb6
·
verified ·
1 Parent(s): cccf89a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
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
- end_query = """ Provide the results in <annotation> tags for example with 0 being False, 1 being True and None means there is no info present\n
26
- <annotation>indoors: 0</annotation>
27
- <annotation>standing: 1</annotation>
28
- <annotation>hands.free: 1</annotation>
29
- <annotation>screen.interaction_yes: 0</annotation>
30
- <annotation>screen.interaction_yes: None</annotation>"""
 
 
 
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