The package name plotly-graph-objects doesn’t exist. The correct package is simply plotly, which includes graph_objects as a submodule.
Fix the requirements file:
Change from:
plotly-graph-objects
To:
plotly
Then in the code, import it as:
import plotly.graph_objects as go
The plotly package includes both plotly.graph_objects and plotly.express submodules by default. Install with pip install plotly or uv pip install plotly.
The deployment works now. However, when I do streamlit run app.py in the terminal and open it in localhost, it works, but the app does not work like it did in the localhost when using the deployed streamlit public url.