storm icon indicating copy to clipboard operation
storm copied to clipboard

ValueError: Expected 2D array, got 1D array instead:

Open Stubborn-z opened this issue 1 year ago • 0 comments

Thank you very much for your contribution! I encountered the same problem as #14 when running the command

-- python -m scripts.run_writing --input-source console --input-path ../FreshWiki/topic_list.csv --engine gpt-4 --do-polish-article --remove-duplicate. 

The error is

ValueError: Expected 2D array, got 1D array instead: array=[]. Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample. 

Then I checked what you said a bunch of

root : ERROR : Error occurs when searching query xxx: 'hits'?

and found that mine is

Error occurs when searching query Taylor Hawkins musical influences: 'url' 
Error occurs when searching query Taylor Hawkins musical background: 'url'
Error occurs when searching query Music inspirations of Taylor Hawkins: 'url'
...
...

Can you help me check it?

Stubborn-z avatar Jul 30 '24 00:07 Stubborn-z