kaixindelele / ChatPaper

Use ChatGPT to summarize the arXiv papers. 全流程加速科研,利用chatgpt进行论文全文总结+专业翻译+润色+审稿+审稿回复
https://chatwithpaper.org
Other
17.98k stars 1.89k forks source link

运行Chat_translate.py代码,连接报错怎么解决呢? #264

Closed dzysunshine closed 11 months ago

dzysunshine commented 11 months ago

parse_pdf_to_dict(path: HTTPConnectionPool(host='localhost', port=8070): Max retries exceeded with url: /api/processFulltextDocument (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f443973da90>: Failed to establish a new connection: [Errno 111] Connection refused')) <class 'requests.exceptions.ConnectionError'> chat_translate.py 31 Traceback (most recent call last): File "/students/julyedu_522454/ChatPaper/chat_translate.py", line 228, in main(root_path, pdf_path, key, task) File "/students/julyedu_522454/ChatPaper/chat_translate.py", line 163, in main paper_pdf = parse_pdf(pdf_path)
File "/students/julyedu_522454/ChatPaper/chat_translate.py", line 41, in parse_pdf return pdf UnboundLocalError: local variable 'pdf' referenced before assignment

kaixindelele commented 11 months ago

这是你的scipdf没有启动,或者没有安装好

dzysunshine commented 11 months ago

好的,解决了,感谢!

dzysunshine commented 9 months ago

在运行这个代码之前,需要先启动scipdf服务,也就是bash serve_grobid.sh

------------------ 原始邮件 ------------------ 发件人: "kaixindelele/ChatPaper" @.>; 发送时间: 2023年10月19日(星期四) 上午6:39 @.>; @.>;"State @.>; 主题: Re: [kaixindelele/ChatPaper] 运行Chat_translate.py代码,连接报错怎么解决呢? (Issue #264)

请问楼上怎么解决的 之前可以已经正常使用了 最近run又报错了 一模一样的报错 请问你的解决方案是什么呢

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>