Spaces:
Runtime error
Runtime error
ManishThota
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -44,13 +44,13 @@ def process_video_and_questions(video, standing, hands, location, screen):
|
|
44 |
print(f"final response type: {type(final_response)}")
|
45 |
|
46 |
if standing == False:
|
47 |
-
final_response.replace('standing: 1', 'standing: None')
|
48 |
elif hands == False:
|
49 |
-
final_response.replace('hands.free: 1', 'hands.free: None')
|
50 |
elif location == False:
|
51 |
-
final_response.replace('indoors: 1', 'indoors: None')
|
52 |
elif screen == False:
|
53 |
-
final_response.replace('screen.interaction_yes: 1', 'screen.interaction_yes: None')
|
54 |
|
55 |
print(final_response)
|
56 |
|
|
|
44 |
print(f"final response type: {type(final_response)}")
|
45 |
|
46 |
if standing == False:
|
47 |
+
final_response = final_response.replace('standing: 1', 'standing: None')
|
48 |
elif hands == False:
|
49 |
+
final_response = final_response.replace('hands.free: 1', 'hands.free: None')
|
50 |
elif location == False:
|
51 |
+
final_response = final_response.replace('indoors: 1', 'indoors: None')
|
52 |
elif screen == False:
|
53 |
+
final_response = final_response.replace('screen.interaction_yes: 1', 'screen.interaction_yes: None')
|
54 |
|
55 |
print(final_response)
|
56 |
|