shashank-gv / hugging

0 stars 0 forks source link

Error and information messages should go to STDERR #16

Open gjwgit opened 2 years ago

gjwgit commented 2 years ago

The output to STDOUT should only be the expected output, not any information or error messages which should go to STDERR.

Thus,

ml summarize hugging https://www.abc.net.au/news/2022-08-16/morrison-secret-ministerial-appointments-legal-or-not-icac/101318718

Produces:

** Your input text is greater than 1024 words. 
** Results are calculated on the first 1024 words of the input. 
** If you want more accurate results input a text file with lower than 1024 words.
Scott Morrison's secret ministerial appointments likely legal and outside federal ICAC remit, experts say. 
Independent MPs say the former prime minister's actions should be investigated by a federal integrity body. 
A former NSW ICAC assistant commissioner says many questions remain unanswered. 
Prime Minister Anthony Albanese is expected to provide an update today after receiving briefings from the

And if I redirect the message it should not appear:

ml summarize hugging https://www.abc.net.au/news/2022-08-16/morrison-secret-ministerial-appointments-legal-or-not-icac/101318718 2> /dev/null

Produces just the output and not the message.

Scott Morrison's secret ministerial appointments likely legal and outside federal ICAC remit, experts say. 
Independent MPs say the former prime minister's actions should be investigated by a federal integrity body. 
A former NSW ICAC assistant commissioner says many questions remain unanswered. 
Prime Minister Anthony Albanese is expected to provide an update today after receiving briefings from the