@@ -31,14 +31,20 @@ async def classify_route(request: ClassifyRequest):
|
||||
|
||||
clean_email.body = extract_latest_message(clean_email.body)
|
||||
clean_email.body = clean_email_html(clean_email.body)
|
||||
if logging:
|
||||
print("Cleaned Email Body:")
|
||||
print(clean_email_html(clean_email.body))
|
||||
print("\n\n-----\n\n\n")
|
||||
clean_email.body = remove_disclaimer(clean_email.body)
|
||||
|
||||
if logging:
|
||||
print("Cleaned Payload:")
|
||||
print(clean_email)
|
||||
print(clean_email.subject)
|
||||
print("\n\n-----")
|
||||
|
||||
response = await send_classify_request(clean_email)
|
||||
|
||||
|
||||
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user