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

pdf识别不正确的参数 #4

Open
Devillmy opened this issue Jan 20, 2025 · 4 comments
Open

pdf识别不正确的参数 #4

Devillmy opened this issue Jan 20, 2025 · 4 comments

Comments

@Devillmy
Copy link

佬,我在使用的时候点击翻译,然后服务端报错说是无法识别这些参数。我是在Windows服务器下面部署的这个插件,然后在我自己的电脑运行。

translating ###: D:\BaiduSyncdisk\Thesis\Liu 等 - 2018 - Digital cardan grille a modern approach for information hiding.pdf

C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\onnxruntime\capi\onnxruntime_validation.py:26: UserWarning: Unsupported Windows version (2016server). ONNX Runtime supports Windows 10 and above, only.
warnings.warn(
usage: pdf2zh [-h] [--version] [--debug] [--pages PAGES] [--vfont VFONT] [--vchar VCHAR] [--lang-in LANG_IN]
[--lang-out LANG_OUT] [--service SERVICE] [--output OUTPUT] [--thread THREAD] [--interactive] [--share]
[--flask] [--celery] [--authorized AUTHORIZED [AUTHORIZED ...]] [--prompt PROMPT] [--compatible]
[--onnx ONNX] [--serverport SERVERPORT] [--dir] [--config CONFIG]
[files ...]
pdf2zh: error: unrecognized arguments: -\ 2018\ -\ Digital\ cardan\ grille\ a\ modern\ approach\ for\ information\ hiding.pdf
192.168.253.118 - - [20/Jan/2025 19:42:25] "POST /translate HTTP/1.1" 200 -

@guaguastandup
Copy link
Owner

我修改了一下脚本,现在应该可以了。你试试。

@Devillmy
Copy link
Author

可以了,不过佬这个是只能支持在本地跑脚本是吧。不支持插件和脚本分开部署吗?

@guaguastandup
Copy link
Owner

guaguastandup commented Jan 21, 2025

可以了,不过佬这个是只能支持在本地跑脚本是吧。不支持插件和脚本分开部署吗?

目前不支持,因为文件是在本地共享的,我之后有时间加一下这个功能

@guaguastandup
Copy link
Owner

目前已支持远程部署

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

2 participants