Increase max_length for bart-large-cnn

I'm hoping this will improve the summaries because right now it is
mostly just repeating the titles of the articles which is not useful at
all.

May need to switch back to a GPT-based model if this doesn't work.
This commit is contained in:
Tyler Hallada 2024-09-12 21:53:51 -04:00
parent d8116ab4fc
commit 9c567aee19

View File

@ -126,7 +126,7 @@ async fn request_ai_summarization(
let client = reqwest::Client::new(); let client = reqwest::Client::new();
let request_body = SummarizeRequest { let request_body = SummarizeRequest {
input_text: input, input_text: input,
max_length: 512, max_length: 1024,
}; };
let response = client let response = client