You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to mimic the result I get when I use the API for my text, however, in my Jupyter Notebook I'm getting a different result. I'm using the following code to get the summary:
First of all, amazing work on the library!
I'm trying to mimic the result I get when I use the API for my text, however, in my Jupyter Notebook I'm getting a different result. I'm using the following code to get the summary:
`
LANG_MODEL='distilbert-base-uncased'
custom_config = AutoConfig.from_pretrained(LANG_MODEL)
custom_config.output_hidden_states=True
custom_tokenizer = AutoTokenizer.from_pretrained(LANG_MODEL)
custom_model = AutoModel.from_pretrained(LANG_MODEL, config=custom_config)
model = Summarizer(custom_model=custom_model, custom_tokenizer=custom_tokenizer)
resp = model(text, num_sentences=6)
`
Could you please tell me what I'm doing wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: