-
Notifications
You must be signed in to change notification settings - Fork 10
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
error:code #61
Comments
Hi @shanshen123654789. Thanks for reporting this. Could you please provide the files you are revising with the editor so we can reproduce the error? |
@shanshen123654789 : I strongly recommend you invalidate the API keys in your screenshots if you haven't already. |
@shanshen123654789 Thanks for the bug report! @cgreene has a good point; I'd invalidate that API key ASAP. If you're looking for the correct place to put it, you should create a file called
This will allow the library to use your API key, and since the UPDATE: actually, sorry, the library doesn't currently automatically load Regarding your encoding issue, I'm looking into it now. As @miltondp suggested, if you could provide your input files it'd be helpful. |
Thank you for your prompt strongly,I have revised my screenshots and the API is hidden. |
Thank you very much for your reminder. I have hidden the API key to avoid privacy leakage. I will pay attention next time. |
We followed your instructions and installed the Pandoc and Manubot libraries in the conda environment, and downloaded them from the website https://github.com/manubot/manubot-ai-editor and https://github.com/manubot/rootstock We found a code issue with all the files in ceshi.py when running it, which should be a compilation problem The content of ceshi.by is as follows: from manubot_ai_editor.editor import ManuscriptEditor os.environ["OPENAI_API_KEY"] = "" me = ManuscriptEditor( model = GPT3CompletionModel( output_folder = (Path("tmp") / "manubot-ai-editor-output").resolve() me.revise_manuscript(output_folder, model,debug=True) print(f"修订后的手稿已保存在: {output_folder}")` |
Hey @shanshen123654789, thank you for providing the code you're using to invoke our library. I assume that Also, I believe what @miltondp was asking for are your input markdown files, since those are what appear to be causing a decoding issue in the library. If you're unable to provide those files, no worries, but it'd help to be sure we've fixed the issue you're experiencing. Even just one GBK-encoded file that contains Chinese characters (what I assume is causing the problem in our library) would be helpful. |
Thank you very much for your patient response. The file test.py is the execution script in my PyCharm project, and its content is identical to everything found under the "Example usage" section in the website https://github.com/manubot/manubot-ai-editor. Similarly, the file I used for content is also a Markdown file, as I converted my manuscript into Markdown format. |
Hi @shanshen123654789. Thanks. Would it be possible to share the content of your file |
Hi, there might have been errors previously due to encoding issues, but we have already made adjustments based on Faisal Alquaddoomi's suggestions. I would like to ask about the editing process: should we perform the editing on a single file (e.g., exemple.md) in the content directory, or on multiple parts such as abstract.md, introduction.md, and result.md? Currently, if we want to perform editing, can we only modify the settings for our manuscript in the ai-revision-prompts.yaml file? |
we absolutly downloaded the library foliowing the guidenance ,when we run the code of manubot-ai-editor,the error indicated 'gbk'codec can't decode byte xb9 in position 949: illegal multibyte sequence
The text was updated successfully, but these errors were encountered: