[本地部署]: 本地部署完成后,上传文件报错
KrystalandBarry opened this issue · comments
KrystalandBarry commented
是否已存在现有反馈与解答?
- 我确认没有已有issue或discussion,且已阅读常见问题。
是否是一个代理配置相关的疑问?
- 我确认这不是一个代理配置相关的疑问。
错误描述
复现操作
错误日志
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2809.31it/s]
Traceback (most recent call last):
File "/Users/dingtao/work/hpr/ai/code/ChuanhuChatGPT/modules/models/base_model.py", line 412, in handle_file_upload
construct_index(self.api_key, file_src=files)
File "/Users/dingtao/work/hpr/ai/code/ChuanhuChatGPT/modules/index_func.py", line 133, in construct_index
raise Exception(i18n("没有找到任何支持的文档。"))
Exception: 没有找到任何支持的文档。
运行环境
- OS:
- Browser:
- Gradio version:
- Python version:
补充说明
No response
Keldos commented
测试一下其他文件可不可以?另外,请提供关于失败文件的更多相关信息。什么格式?什么编码?等等
KrystalandBarry commented
换了很多文件都不行,pdf,docx,jpg等,都是utf-8
KrystalandBarry commented
Keldos commented
hugging face上似乎确实有问题,但我本地测试一切正常……
我无法复现,还请再描述一下详细的环境配置等信息,也许也和文件本身有关,也许是一些依赖版本不匹配当前代码的原因……可以试着pull最新的主线代码,然后pip install -r requirements.txt --upgrade
Keldos commented
再使用最新的版本试试呢?