Spaces:
Runtime error
Runtime error
ManishThota
commited on
Commit
•
78e2d46
1
Parent(s):
b3ca871
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,9 @@ def process_video_and_questions(video, sitting, hands, location, screen):
|
|
17 |
additional_info.append("Is the subject interacting with a screen in the background by facing the screen?")
|
18 |
end_query = "Provide the results in JSON format with 0 being False and 1 being True"
|
19 |
final_query = query + " " + " ".join(additional_info)
|
|
|
20 |
# Assuming your describe_video function handles the video processing
|
21 |
-
response = describe_video(video,
|
22 |
return response
|
23 |
|
24 |
# Video and text inputs for the interface
|
|
|
17 |
additional_info.append("Is the subject interacting with a screen in the background by facing the screen?")
|
18 |
end_query = "Provide the results in JSON format with 0 being False and 1 being True"
|
19 |
final_query = query + " " + " ".join(additional_info)
|
20 |
+
final_prompt = final_query + " " + end_query
|
21 |
# Assuming your describe_video function handles the video processing
|
22 |
+
response = describe_video(video, final_prompt
|
23 |
return response
|
24 |
|
25 |
# Video and text inputs for the interface
|