omer-bhutta commited on
Commit
5dcca16
·
verified ·
1 Parent(s): 3babe24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -35
app.py CHANGED
@@ -90,43 +90,46 @@ def qwen_inference(media_input):
90
 
91
  # 2. Hard-code the text prompt here
92
  fixed_prompt_text = """
93
- Use the following typology to describe the behaviors of the child in the video
 
94
 
95
- indicator_1 indicator_2 indicator_3 sr_no
96
- Behavioral Category Holding Objects Holding two random objects, often simultaneously 1
97
- Behavioral Category Holding Objects Persistent attachment to specific objects 2
98
- Behavioral Category Eye Contact and Engagement Lack of eye contact or minimal eye engagement 3
99
- Behavioral Category Eye Contact and Engagement Focus on objects rather than people during interaction 4
100
- Behavioral Category Eye Contact and Engagement Unresponsive to name being called or other verbal cues 5
101
- Behavioral Category Eye Contact and Engagement Limited back-and-forth gaze between people and objects 6
102
- Behavioral Category Facial Expressions Flat or unexpressive face 7
103
- Behavioral Category Facial Expressions Limited range of facial expressions 8
104
- Behavioral Category Facial Expressions Occasional tense or grimacing facial posture 9
105
- Behavioral Category Social Interaction Lack of shared enjoyment or visible emotional connection during interactions 10
106
- Behavioral Category Social Interaction Disinterest in other people, even when they are engaging 11
107
- Behavioral Category Social Interaction Inconsistent or no acknowledgment of social gestures like pointing 12
108
- Movement and Gestures Repetitive Movements Hand flapping 13
109
- Movement and Gestures Repetitive Movements Toe walking or bouncing on toes 14
110
- Movement and Gestures Repetitive Movements Rocking back and forth, sometimes aggressively 15
111
- Movement and Gestures Repetitive Movements Pacing or repetitive movements in a fixed area 16
112
- Movement and Gestures Repetitive Movements Head shaking side to side 17
113
- Movement and Gestures Repetitive Movements Spinning 18
114
- Movement and Gestures Gestural Communication Using another person’s hand to point, request, or manipulate objects 19
115
- Movement and Gestures Gestural Communication Nodding 20
116
- Interaction with Toys and Objects Play Behavior Lining up toys or objects systematically, often by color or type 21
117
- Interaction with Toys and Objects Play Behavior Stacking items like cans or blocks repeatedly 22
118
- Interaction with Toys and Objects Play Behavior Fixation on spinning objects or wheels 23
119
- Interaction with Toys and Objects Play Behavior Inspecting objects from unusual angles, such as sideways 24
120
- Interaction with Toys and Objects Sensory Preferences Chewing or mouthing objects 25
121
- Interaction with Toys and Objects Sensory Preferences Sensory-seeking behaviors like rubbing textures or spinning in circles without getting dizzy 26
122
- Interaction with Toys and Objects Sensory Preferences Sensitivity to sounds, often covering ears 27
123
- Interaction with Toys and Objects Sensory Preferences Visual inspection of objects up close or intensely 28
124
- Gender and Developmental Nuances Gender-Based Masking Females may mimic or "mask" typical behaviors more effectively, making symptoms less apparent 29
125
- Gender and Developmental Nuances Gender-Based Masking Girls may demonstrate learned emotional and social responses that obscure typical signs 30
126
- Gender and Developmental Nuances Developmental Indicators Delays or atypical development in social communication and interaction milestones 31
127
- Gender and Developmental Nuances Developmental Indicators Difficulty with back-and-forth conversation or social reciprocity 32
128
 
129
- Your output should be a list of only the indicators that were observed in the video. Do not include any indicators for which evidence is low or non-existent
 
 
 
130
  """
131
 
132
  # 3. Construct the messages with your fixed text
 
90
 
91
  # 2. Hard-code the text prompt here
92
  fixed_prompt_text = """
93
+
94
+ Consider the following list of indicators for autism risk
95
 
96
+ Holding two random objects, often simultaneously
97
+ Persistent attachment to specific objects
98
+ Lack of eye contact or minimal eye engagement
99
+ Focus on objects rather than people during interaction
100
+ Unresponsive to name being called or other verbal cues
101
+ Limited back-and-forth gaze between people and objects
102
+ Flat or unexpressive face
103
+ Limited range of facial expressions
104
+ Occasional tense or grimacing facial posture
105
+ Lack of shared enjoyment or visible emotional connection during interactions
106
+ Disinterest in other people, even when they are engaging
107
+ Inconsistent or no acknowledgment of social gestures like pointing
108
+ Hand flapping
109
+ Toe walking or bouncing on toes
110
+ Rocking back and forth, sometimes aggressively
111
+ Pacing or repetitive movements in a fixed area
112
+ Head shaking side to side
113
+ Spinning
114
+ Using another person’s hand to point, request, or manipulate objects
115
+ Nodding
116
+ Lining up toys or objects systematically, often by color or type
117
+ Stacking items like cans or blocks repeatedly
118
+ Fixation on spinning objects or wheels
119
+ Inspecting objects from unusual angles, such as sideways
120
+ Chewing or mouthing objects
121
+ Sensory-seeking behaviors like rubbing textures or spinning in circles without getting dizzy
122
+ Sensitivity to sounds, often covering ears
123
+ Visual inspection of objects up close or intensely
124
+ Females may mimic or "mask" typical behaviors more effectively, making symptoms less apparent
125
+ Girls may demonstrate learned emotional and social responses that obscure typical signs
126
+ Delays or atypical development in social communication and interaction milestones
127
+ Difficulty with back-and-forth conversation or social reciprocity
 
128
 
129
+ Your output should be a list of only the indicators that were observed in the video.
130
+ Do not include any indicators for which evidence is low or non-existent
131
+ Do not repeat any indicators
132
+ Do not produce any text except for the detected indicators
133
  """
134
 
135
  # 3. Construct the messages with your fixed text