Help with code in new JupyterDash app

new JupyterDash app

I am in a data science class learning about dash.
How do I resolve the code issue in my attached repository?