Skip to content

运行失败 #4

Closed
Closed

Description

@SunLang115

AttributeError: module 'streamlit' has no attribute 'toast'
上传文档加载知识库会报这个错

Activity

  1. SunLang115 commented on Aug 2, 2023

    @SunLang115
    Author

    AttributeError: module 'streamlit' has no attribute 'toast' 上传文档加载知识库会报这个错误

    streamlit需要1.25.0才可以 代码里的1.24.0不支持toast了

  2. SWHL commented on Aug 2, 2023

    @SWHL
    Member

    感谢指出,是我版本搞错了,已经更改。

  3. added a commit that references this issue on Aug 2, 2023
  4. SunLang115 commented on Aug 2, 2023

    @SunLang115
    Author

    请问上传文档加载数据库报这个错是因为什么呢?
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 0: invalid start byte
    Uploading 屏幕截图 2023-08-02 223308.png…

  5. SWHL commented on Aug 2, 2023

    @SWHL
    Member

    应该是内容编码问题。你先试试tests目录下的简单文档,是否能用,确定环境没问题之后
    再测试自己的文档

  6. SunLang115 commented on Aug 2, 2023

    @SunLang115
    Author

    应该是内容编码问题。你先尝试tests目录下的简单文档,是否能用,确定环境没问题之后 再测试自己的文档

    我试了长安三万里的pdf,还是一样的问题

  7. SunLang115 commented on Aug 2, 2023

    @SunLang115
    Author

    应该是内容编码问题。你先尝试tests目录下的简单文档,是否能用,确定环境没问题之后再测试自己的文档

    我试了长安三万里的pdf,还是一样的问题

    基座模型回答没问题,只要涉及到加载向量化都会有问题

  8. locked and limited conversation to collaborators on Aug 3, 2023
  9. converted this issue into a discussion #6 on Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions