Spaces:
Runtime error
Runtime error
Update output_parser.py
Browse files- output_parser.py +4 -4
output_parser.py
CHANGED
@@ -7,10 +7,10 @@ class AttachmentStyle(BaseModel):
|
|
7 |
anxious_preoccupied: float = 0.0
|
8 |
dismissive_avoidant: float = 0.0
|
9 |
fearful_avoidant: float = 0.0
|
|
|
10 |
self_model: int = 0
|
11 |
-
others_model: int = 0
|
12 |
anxiety: int = 0
|
13 |
-
|
14 |
explanation: str = "No explanation provided"
|
15 |
|
16 |
class BigFiveTraits(BaseModel):
|
@@ -74,10 +74,10 @@ class OutputParser:
|
|
74 |
anxious_preoccupied=attachment_styles.get("Anxious-Preoccupied", 0.0),
|
75 |
dismissive_avoidant=attachment_styles.get("Dismissive-Avoidant", 0.0),
|
76 |
fearful_avoidant=attachment_styles.get("FearfulAvoidant", 0.0),
|
|
|
77 |
self_model=attachment_styles.get("Self", 0),
|
78 |
-
others_model=attachment_styles.get("Others", 0),
|
79 |
anxiety=attachment_styles.get("Anxiety", 0),
|
80 |
-
|
81 |
explanation=attachment_styles.get("Explanation", "No explanation provided")
|
82 |
),
|
83 |
big_five_traits=BigFiveTraits(
|
|
|
7 |
anxious_preoccupied: float = 0.0
|
8 |
dismissive_avoidant: float = 0.0
|
9 |
fearful_avoidant: float = 0.0
|
10 |
+
avoidance: int = 0
|
11 |
self_model: int = 0
|
|
|
12 |
anxiety: int = 0
|
13 |
+
others_model: int = 0
|
14 |
explanation: str = "No explanation provided"
|
15 |
|
16 |
class BigFiveTraits(BaseModel):
|
|
|
74 |
anxious_preoccupied=attachment_styles.get("Anxious-Preoccupied", 0.0),
|
75 |
dismissive_avoidant=attachment_styles.get("Dismissive-Avoidant", 0.0),
|
76 |
fearful_avoidant=attachment_styles.get("FearfulAvoidant", 0.0),
|
77 |
+
avoidance=attachment_styles.get("Avoidance", 0),
|
78 |
self_model=attachment_styles.get("Self", 0),
|
|
|
79 |
anxiety=attachment_styles.get("Anxiety", 0),
|
80 |
+
others_model=attachment_styles.get("Others", 0),
|
81 |
explanation=attachment_styles.get("Explanation", "No explanation provided")
|
82 |
),
|
83 |
big_five_traits=BigFiveTraits(
|