Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,8 +89,8 @@ def infer_and_respond(email_text: str, mail_type: str):
|
|
| 89 |
return clean_and_package(raw, mail_type, client)
|
| 90 |
|
| 91 |
def app_handle(email_text): # frontend wrapper - keep syncronous
|
| 92 |
-
|
| 93 |
-
|
| 94 |
result = infer_and_respond(email_text, mail_type)
|
| 95 |
formatted_text = format_response_text(result)
|
| 96 |
return result, formatted_text
|
|
|
|
| 89 |
return clean_and_package(raw, mail_type, client)
|
| 90 |
|
| 91 |
def app_handle(email_text): # frontend wrapper - keep syncronous
|
| 92 |
+
# Let the model classify the email type automatically
|
| 93 |
+
mail_type = "Query" # default, model will determine actual type
|
| 94 |
result = infer_and_respond(email_text, mail_type)
|
| 95 |
formatted_text = format_response_text(result)
|
| 96 |
return result, formatted_text
|