Skip to content

Commit b10297c

Browse files
committed
Demo changes
1 parent d6459b5 commit b10297c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

gemini_prompt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def generate_visual_context_summary(speech_text, pose_label, emotion_label, gest
3232
return response.text # Get the AI-generated response
3333

3434
# Example data (Replace with real values)
35-
speech_text = "I love science fair!"
35+
speech_text = "hi!"
3636
pose_label = "Open stance"
3737
emotion_label = "Happy"
3838
gesture_label = "Both Hand Raised"

media_pipe_pose_analysis.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
pose_label = ""
1111

12-
# Open webcam
1312
cap = cv2.VideoCapture(0)
1413
pTime = 0
1514

@@ -39,7 +38,7 @@ def classify_pose(landmarks, img_shape):
3938
wrist_distance = abs(lw_x - rw_x)
4039

4140
# Check if body is leaning
42-
lean_threshold = 20 # How much tilt is considered leaning
41+
lean_threshold = 20
4342
body_tilt = abs(ls_y - rs_y)
4443
is_leaning = body_tilt > lean_threshold
4544

0 commit comments

Comments
 (0)