omer-bhutta commited on
Commit
620ccea
·
verified ·
1 Parent(s): 18a6e33

Update app.py

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