Plotly graph throws an error when deployed to streamlit cloud

My streamlit plotly heatmap works locally but I deployed it to the cloud it shows an error like this.

app: Streamlit (

github: NirmalSankalana/happiness-insights (

Can anyone help me to fix this?

Your requirements.txt is empty on Github.
Please add packages you use e.g. streamlit and plotly.

Example requirements.txt file:


Let me know if that solves your issue! if so, mark this as solution. Else let me know the error.

1 Like

Now It’s working. Thank you so mutch

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.