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

[本地部署]: 本地部署完成后,上传文件报错 #1090

Open
2 tasks done
KrystalandBarry opened this issue Apr 1, 2024 · 5 comments
Open
2 tasks done

[本地部署]: 本地部署完成后,上传文件报错 #1090

KrystalandBarry opened this issue Apr 1, 2024 · 5 comments
Labels
localhost deployment question Further information is requested

Comments

@KrystalandBarry
Copy link

是否已存在现有反馈与解答?

  • 我确认没有已有issue或discussion,且已阅读常见问题

是否是一个代理配置相关的疑问?

  • 我确认这不是一个代理配置相关的疑问。

错误描述

复现操作

本地部署完成后,上传文件报错
image

错误日志

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

@KrystalandBarry KrystalandBarry added localhost deployment question Further information is requested labels Apr 1, 2024
@Keldos-Li
Copy link
Collaborator

测试一下其他文件可不可以?另外,请提供关于失败文件的更多相关信息。什么格式?什么编码?等等

@KrystalandBarry
Copy link
Author

换了很多文件都不行,pdf,docx,jpg等,都是utf-8

@KrystalandBarry
Copy link
Author

image
在线体验的地址,上传文件对话也报错

@Keldos-Li
Copy link
Collaborator

hugging face上似乎确实有问题,但我本地测试一切正常……

我无法复现,还请再描述一下详细的环境配置等信息,也许也和文件本身有关,也许是一些依赖版本不匹配当前代码的原因……可以试着pull最新的主线代码,然后pip install -r requirements.txt --upgrade

@Keldos-Li
Copy link
Collaborator

再使用最新的版本试试呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
localhost deployment question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants