lunyiliu / LogPrompt

39 stars 9 forks source link

Endless error loop with function parse_logs #2

Closed jlboura closed 2 months ago

jlboura commented 3 months ago

Hello

I run the LogPrompt_code.py script on a sample .xls with 3 lines, with CoT strategy. The command line is the following:

python3 LogPrompt_code.py --API_KEY --dataset example.xls --strategy CoT --output_file_name testCOT

The output is a endless display of "error! choice" :

image

I say "endless" because it last until I do Ctrl-C.

I added some prints in the code to debug, and it appears that the error, whatever its cause, appear in the function parse_logs. More precisely, in the "while parsed_log =='':" loop: res variable appears to be adequatly instancied, the error is probably that the Exception is then triggered for unknown reason. I also don't figure out why the endless loop whereas the sample file is only 3 lines long.

Your tool is very interesting, I can't wait to continue explore it once this issue is solved :)

Best regards

soumya-ghosh-wdc commented 2 months ago

I am also facing the same issue.Can a hot fix of the same be provided for me to continue.

soumya-ghosh-wdc commented 2 months ago

Request to kindly fix the issue.

lunyiliu commented 2 months ago

Please refer to #3