Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,8 +14,7 @@ def handle_email(email_text: str):
|
|
| 14 |
import re
|
| 15 |
match = re.search(r'POL\d+', email_text)
|
| 16 |
policy_number = match.group(0) if match else None
|
| 17 |
-
|
| 18 |
-
|
| 19 |
# Step 3: If query/request and we have a policy number, get client info
|
| 20 |
mail_type = model_output.get("type", "").lower()
|
| 21 |
client_id = model_output.get("client_id")
|
|
|
|
| 14 |
import re
|
| 15 |
match = re.search(r'POL\d+', email_text)
|
| 16 |
policy_number = match.group(0) if match else None
|
| 17 |
+
print(f"[APP] Extracted policy_number: '{policy_number}'")
|
|
|
|
| 18 |
# Step 3: If query/request and we have a policy number, get client info
|
| 19 |
mail_type = model_output.get("type", "").lower()
|
| 20 |
client_id = model_output.get("client_id")
|