Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,10 @@ def extract_scores_and_verdict(result_text):
|
|
| 10 |
|
| 11 |
# Match categories based on keywords (not emojis)
|
| 12 |
patterns = {
|
| 13 |
-
"Clarity": r"Clarity
|
| 14 |
-
"Context": r"Context
|
| 15 |
-
"Specificity": r"Specificity
|
| 16 |
-
"Intent Alignment": r"Intent Alignment
|
| 17 |
}
|
| 18 |
|
| 19 |
for key, pattern in patterns.items():
|
|
|
|
| 10 |
|
| 11 |
# Match categories based on keywords (not emojis)
|
| 12 |
patterns = {
|
| 13 |
+
"Clarity": r"[-–•\s]*[^\w]?Clarity:\s*(\d)/5",
|
| 14 |
+
"Context": r"[-–•\s]*[^\w]?Context:\s*(\d)/5",
|
| 15 |
+
"Specificity": r"[-–•\s]*[^\w]?Specificity:\s*(\d)/5",
|
| 16 |
+
"Intent Alignment": r"[-–•\s]*[^\w]?Intent Alignment:\s*(\d)/5"
|
| 17 |
}
|
| 18 |
|
| 19 |
for key, pattern in patterns.items():
|