Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no output #4

Open
wi-wi opened this issue May 28, 2024 · 1 comment
Open

no output #4

wi-wi opened this issue May 28, 2024 · 1 comment

Comments

@wi-wi
Copy link

wi-wi commented May 28, 2024

python main.py input.docx --output_file_path out.docx --model dolphin-mistral:latest --target_lang english --grammar off --chatgpt on
Traceback (most recent call last):
File "main.py", line 271, in
process_docx(args.file_path, args.output_file_path, args.target_lang, args.grammar, args.chatgpt)
File "main.py", line 216, in process_docx
if(getScore(output_text)):
File "main.py", line 147, in getScore
score = resp['score']
KeyError: 'score'

no output. I placed input.docx in the same folder as main.py. inserted chatgt api key in main.py.

@wi-wi
Copy link
Author

wi-wi commented May 29, 2024

I tricked the script by setting function getScore to True and isHuman(input_text) to return int(resp['data']['isAIgenerated']) ... no the output is stored but the contents has not been changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant