ChatPaper icon indicating copy to clipboard operation
ChatPaper copied to clipboard

私有化部署后报错

Open wangzuohao opened this issue 1 year ago • 2 comments

采用私有化部署,上次PDF后后报错,错误内容如下,还需要做什么配置吗: im_path: image.png Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/gradio/routes.py", line 384, in run_predict output = await app.get_blocks().process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1032, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 844, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "/root/ChatPaper/deploy/Private/app.py", line 619, in upload_pdf sum_info = reader.summary_with_chat(paper_list=paper_list) File "/root/ChatPaper/deploy/Private/app.py", line 446, in summary_with_chat summary_text += "

" + chat_summary_text TypeError: can only concatenate str (not "tuple") to str

wangzuohao avatar Mar 20 '23 08:03 wangzuohao

补充一下: image 这里也有一处tuple处理不妥当

Crazybean-lwb avatar Mar 24 '23 01:03 Crazybean-lwb

目前来看,作者不准备继续维护deploy文件夹,你可以直接去用 huggingface/ChatPaper

如果坚持使用本仓库,可以参考 pull/101 进行手动修复,或使用 zfb132/ChatPaper(Fork版本)

zfb132 avatar Mar 25 '23 12:03 zfb132