Views
No views yet
If you like the idea of wasting less time on emails, further work on this topic can be found on this hf org page
1from transformers import pipeline
2
3model_tag = "pszemraj/opt-350m-email-generation"
4generator = pipeline(
5 'text-generation',
6 model=model_tag,
7 use_fast=False,
8 do_sample=False,
9 early_stopping=True,
10 )
11
12prompt = """
13Hello,
14
15Following up on the bubblegum shipment."""
16
17generator(
18 prompt,
19 max_length=64,
20) # generateFor this model, formatting matters. The results may be (significantly) different between the structure outlined above andprompt = "Hey, just wanted to ..."etc.
pipeline objectemail_body field of train + validation (get more data) from the aeslc dataset.