Use on device local AI, to automatically generate the subject field from an email.
This demo uses the summarizer API to generate the subject, which works for the majority of the time, however it sometimes generates subject lines that are too long, or too "headliney". In contrast, we can also summarize using the LanguageModel demo for comparison.