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

模型加载不成功,但终端没有报错 #119

Open
Luka0770 opened this issue Sep 3, 2023 · 2 comments
Open

模型加载不成功,但终端没有报错 #119

Luka0770 opened this issue Sep 3, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Luka0770
Copy link

Luka0770 commented Sep 3, 2023

f60332f613cdb7c31d5611117602da8
aa94f3a57b9c03ca9dfea2e76ad1cbf
675ab9f37f780b3c273afe789c20f06

@pzchu
Copy link

pzchu commented Oct 14, 2023

解决了吗?

@thomas-yanxin thomas-yanxin added the bug Something isn't working label Jan 8, 2024
@123456ADWAE2
Copy link
Contributor

123456ADWAE2 commented Jan 14, 2024

在app.py的def init_model()部分改成

def init_model():
    try:
        print("开始加载模型配置")
        knowladge_based_chat_llm.init_model_config()
        print("模型配置加载成功")
        knowladge_based_chat_llm.llm._call("你好")
        return """初始模型已成功加载,可以开始对话"""
    except Exception as e:
        print(f"加载模型出错: {e}")  # 打印详细的异常信息
        return """2222模型未成功加载,请重新选择模型后点击"重新加载模型"按钮"""

终端会显示错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants