Skip to content

Streamlit-shap图部署WEBAPP时中文无法显示 #2

@Lucky8-GH

Description

@Lucky8-GH

在本地终端运行 Streamlit run /Users/xxx/Desktop/Streamlit_Shap_APP.py 将会在打开的网页中正常展示shap图像,并且中文字体也可以正常展示。但是如果将 Streamlit_Shap_APP.py 部署在Streamlit Community Cloud 再运行部署完成的WebApp时就会出现下图中文字体无法显示的情况。请问应该怎么解决?

Running Streamlit run / Users/xxx/Desktop/Streamlit_Shap_ APP.py on the local terminal will display the shap image normally in the open web page, and the Chinese font can also be displayed normally. However, if APP.py is deployed in Streamlit Community Cloud and then runs the deployed WebApp, the font in the following figure cannot be displayed. Could you tell me how to solve it?

image

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions